aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/TimerEdit.py
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-11-12 10:11:57 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-11-12 10:11:57 +0000
commit3a3ce2b7a414e90b7c611bc0689541fabbea9057 (patch)
tree8e57b80ecc3a2cf5734ef58427c5833f427cb462 /lib/python/Screens/TimerEdit.py
parentcfa6562f66863d56a9f767c21a8b84f0c9317f7a (diff)
downloadenigma2-3a3ce2b7a414e90b7c611bc0689541fabbea9057.tar.gz
enigma2-3a3ce2b7a414e90b7c611bc0689541fabbea9057.zip
add colorbuttons to TimerEditList
Diffstat (limited to 'lib/python/Screens/TimerEdit.py')
-rw-r--r--lib/python/Screens/TimerEdit.py17
1 files changed, 15 insertions, 2 deletions
diff --git a/lib/python/Screens/TimerEdit.py b/lib/python/Screens/TimerEdit.py
index 1bc734a6..0a9f2830 100644
--- a/lib/python/Screens/TimerEdit.py
+++ b/lib/python/Screens/TimerEdit.py
@@ -62,13 +62,26 @@ class TimerEditList(Screen):
list.append(TimerEntryComponent(timer, 1))
self["timerlist"] = TimerList(list)
+
+ self["key_red"] = Button("Delete")
+ self["key_green"] = Button("Add")
+ self["key_yellow"] = Button("")
+ self["key_blue"] = Button("")
- self["actions"] = ActionMap(["OkCancelActions"],
+ self["actions"] = ActionMap(["OkCancelActions", "ShortcutActions"],
{
"ok": self.openEdit,
- "cancel": self.close
+ "cancel": self.close,
+ "red": self.removeTimer,
+ "green": self.addTimer
})
def openEdit(self):
self.session.open(TimerEntry, self["timerlist"].getCurrent()[0])
#self.session.open(TimerEdit, self["timerlist"].getCurrent()[0])
+
+ def removeTimer(self):
+ pass
+
+ def addTimer(self):
+ pass