diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-01-12 01:56:51 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-01-12 01:56:51 +0000 |
| commit | 0dbb36049c5f14bbabc4596448dc148f108a2137 (patch) | |
| tree | b5783f3eb964f5bb1c55f1ad03793bcb491a445c /mytest.py | |
| parent | 39627668ca36cecbc78ec5f677061f128957b550 (diff) | |
| download | enigma2-0dbb36049c5f14bbabc4596448dc148f108a2137.tar.gz enigma2-0dbb36049c5f14bbabc4596448dc148f108a2137.zip | |
get rid of unneede global keywords
fix non working shutdown after timerevent when the box is in standby
Diffstat (limited to 'mytest.py')
| -rw-r--r-- | mytest.py | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -387,7 +387,7 @@ class VolumeControl: self.muteDialog.hide() self.volumeDialog.setValue(vol) -from Screens.Standby import Standby, inStandby, TryQuitMainloop, inTryQuitMainloop +import Screens.Standby class PowerKey: """ PowerKey stuff - handles the powerkey press and powerkey release actions""" @@ -409,9 +409,8 @@ class PowerKey: def powertimer(self): print "PowerOff - Now!" - global inTryQuitMainloop - if not inTryQuitMainloop: - self.session.open(TryQuitMainloop, 1) + if not Screens.Standby.inTryQuitMainloop: + self.session.open(Screens.Standby.TryQuitMainloop, 1) def powerdown(self): self.standbyblocked = 0 @@ -424,9 +423,8 @@ class PowerKey: self.standby() def standby(self): - global inStandby - if not inStandby and self.session.current_dialog and self.session.current_dialog.ALLOW_SUSPEND: - self.session.open(Standby) + if not Screens.Standby.inStandby and self.session.current_dialog and self.session.current_dialog.ALLOW_SUSPEND: + self.session.open(Screens.Standby.Standby) from Screens.Scart import Scart |
