git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes bug #269
[enigma2.git]
/
SleepTimer.py
diff --git
a/SleepTimer.py
b/SleepTimer.py
index f9aae1aaa60792ffedef10bb0af8e06bd8e93393..221e8f0b29422826edeb3368fcf24bdd752d7a6d 100644
(file)
--- a/
SleepTimer.py
+++ b/
SleepTimer.py
@@
-9,6
+9,10
@@
from Components.config import config, ConfigYesNo, ConfigSelection, ConfigSubsec
from Screens.MessageBox import MessageBox
import Screens.Standby
from Screens.MessageBox import MessageBox
import Screens.Standby
+config.SleepTimer = ConfigSubsection()
+config.SleepTimer.ask = ConfigYesNo(default = True)
+config.SleepTimer.action = ConfigSelection(default = "shutdown", choices = [("shutdown", _("shutdown")), ("standby", _("standby"))])
+
class SleepTimerEntry(timer.TimerEntry):
def __init__(self, begin):
timer.TimerEntry.__init__(self, int(begin), int(begin))
class SleepTimerEntry(timer.TimerEntry):
def __init__(self, begin):
timer.TimerEntry.__init__(self, int(begin), int(begin))
@@
-48,9
+52,6
@@
class SleepTimerEntry(timer.TimerEntry):
class SleepTimer(timer.Timer):
def __init__(self):
class SleepTimer(timer.Timer):
def __init__(self):
- config.SleepTimer = ConfigSubsection()
- config.SleepTimer.ask = ConfigYesNo(default = True)
- config.SleepTimer.action = ConfigSelection(default = "shutdown", choices = [("shutdown", _("shutdown")), ("standby", _("standby"))])
timer.Timer.__init__(self)
self.defaultTime = 30
timer.Timer.__init__(self)
self.defaultTime = 30