aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/TimerSelection.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Screens/TimerSelection.py')
-rw-r--r--lib/python/Screens/TimerSelection.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/python/Screens/TimerSelection.py b/lib/python/Screens/TimerSelection.py
new file mode 100644
index 00000000..7a1d9ecd
--- /dev/null
+++ b/lib/python/Screens/TimerSelection.py
@@ -0,0 +1,25 @@
+from Screen import Screen
+from Components.TimerList import TimerList
+from Components.ActionMap import ActionMap
+
+class TimerSelection(Screen):
+ def __init__(self, session, list):
+ Screen.__init__(self, session)
+
+ self.list = list
+
+ self["timerlist"] = TimerList(self.list)
+
+ self["actions"] = ActionMap(["OkCancelActions"],
+ {
+ "ok": self.selected,
+ "cancel": self.leave,
+ }, -1)
+
+
+ def leave(self):
+ self.close(None)
+
+ def selected(self):
+ self.close(self["timerlist"].getCurrentIndex())
+ \ No newline at end of file