git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- skip first field in flexible python listbox to allow having private data.
[enigma2.git]
/
lib
/
python
/
Screens
/
TimerEdit.py
diff --git
a/lib/python/Screens/TimerEdit.py
b/lib/python/Screens/TimerEdit.py
index 41b6a12e86151fd0d490b24e2aa677b4fe06e908..2fe389eee387849ed990936d19bae5ccac48fa05 100644
(file)
--- a/
lib/python/Screens/TimerEdit.py
+++ b/
lib/python/Screens/TimerEdit.py
@@
-15,6
+15,12
@@
class TimerEdit(Screen):
"cancel": self.close
})
"cancel": self.close
})
+ self["shortcuts"] = ActionMap(["ShortcutActions"],
+ {
+ "red": self.beginFocus,
+ "yellow": self.endFocus
+ })
+
self.entry = entry
# begin, end, description, service
self["begin"] = TimeInput()
self.entry = entry
# begin, end, description, service
self["begin"] = TimeInput()
@@
-28,6
+34,12
@@
class TimerEdit(Screen):
self["apply"] = Button("Apply")
self["service"] = Button()
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!"
def apply(self):
print "applied!"