aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/TimerEdit.py
diff options
context:
space:
mode:
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