add support for multiple instant recordings
[enigma2.git] / lib / python / Screens / TimerSelection.py
diff --git a/lib/python/Screens/TimerSelection.py b/lib/python/Screens/TimerSelection.py
new file mode 100644 (file)
index 0000000..7a1d9ec
--- /dev/null
@@ -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