X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=mytest.py;h=58c5c68039edcc79ffd8b8fdb39ba7ce90341009;hp=2169857f13ecbe273d967be2aa3ec14030fa3ff9;hb=5655fee2e15bf1cfc0fe06a85e3c864dbfcd41ce;hpb=adb244ff095e3b57b8375fd4480edb6069c2274b diff --git a/mytest.py b/mytest.py index 2169857..58c5c68 100644 --- a/mytest.py +++ b/mytest.py @@ -1,6 +1,6 @@ -from Tools import RedirectOutput +from Tools import RedirectOutput, RedirectTime from enigma import runMainloop, eDVBDB, eTimer, quitMainloop, eDVBVolumecontrol, \ - getDesktop, ePythonConfigQuery, eAVSwitch, eWindow + getDesktop, ePythonConfigQuery, eAVSwitch, eWindow, eServiceEvent from tools import * from Components.Language import language @@ -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