aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/TimerSelection.py
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-04-02 22:13:38 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-04-02 22:13:38 +0000
commitd8733ed57694bbb5309afc396cabe2bfc6f35c16 (patch)
tree68ee8fdc52a52da1db37179e9f2f2834c7806d2a /lib/python/Screens/TimerSelection.py
parentecf05a2de9a95814a3efdc3dafa0a10ad343f82a (diff)
downloadenigma2-d8733ed57694bbb5309afc396cabe2bfc6f35c16.tar.gz
enigma2-d8733ed57694bbb5309afc396cabe2bfc6f35c16.zip
add support for multiple instant recordings
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