diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-05-19 22:55:45 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-05-19 22:55:45 +0000 |
| commit | 5561f5ec4f0a55d9256c3eab0ce121ae82ee5c90 (patch) | |
| tree | 2e8036c1e1104835e75562d632ac69a3b873c309 /lib/python | |
| parent | 16e1c26e4bfebd5960e9f4613da06c96556f5b4e (diff) | |
| download | enigma2-5561f5ec4f0a55d9256c3eab0ce121ae82ee5c90.tar.gz enigma2-5561f5ec4f0a55d9256c3eab0ce121ae82ee5c90.zip | |
- add shortcuts
- shortcuts are used for focus in TimerEdit (sucks yet)
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Screens/TimerEdit.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/python/Screens/TimerEdit.py b/lib/python/Screens/TimerEdit.py index 41b6a12e..2fe389ee 100644 --- a/lib/python/Screens/TimerEdit.py +++ b/lib/python/Screens/TimerEdit.py @@ -15,6 +15,12 @@ class TimerEdit(Screen): "cancel": self.close }) + self["shortcuts"] = ActionMap(["ShortcutActions"], + { + "red": self.beginFocus, + "yellow": self.endFocus + }) + self.entry = entry # begin, end, description, service self["begin"] = TimeInput() @@ -28,6 +34,12 @@ class TimerEdit(Screen): self["apply"] = Button("Apply") self["service"] = Button() + def beginFocus(self): + self.setFocus(self["begin"]) + + def endFocus(self): + self.setFocus(self["end"]) + def apply(self): print "applied!" |
