From d8733ed57694bbb5309afc396cabe2bfc6f35c16 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Sun, 2 Apr 2006 22:13:38 +0000 Subject: add support for multiple instant recordings --- lib/python/Screens/TimerSelection.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 lib/python/Screens/TimerSelection.py (limited to 'lib/python/Screens/TimerSelection.py') 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 -- cgit v1.2.3