add configText for entering text in the configList (numbers only at the moment)
[enigma2.git] / lib / python / Screens / TimerEdit.py
index 173b1ba20b336fd071a757594861c93748f21012..1bc734a638e8e314e029bdde8b87e95d6919cf39 100644 (file)
@@ -1,10 +1,11 @@
 from Screen import Screen
-from Components.TimerList import TimerList, TimerEntry
+from Components.TimerList import TimerList, TimerEntryComponent
 from Components.ActionMap import ActionMap
 from Components.TimeInput import TimeInput
 from Components.Label import Label
 from Components.Button import Button
 from Components.TextInput import TextInput
+from TimerEntry import TimerEntry
 
 class TimerEdit(Screen):
        def __init__(self, session, entry):
@@ -55,18 +56,19 @@ class TimerEditList(Screen):
                
                list = [ ]
                for timer in session.nav.RecordTimer.timer_list:
-                       list.append(TimerEntry(timer, 0))
+                       list.append(TimerEntryComponent(timer, 0))
                
                for timer in session.nav.RecordTimer.processed_timers:
-                       list.append(TimerEntry(timer, 1))
+                       list.append(TimerEntryComponent(timer, 1))
                
                self["timerlist"] = TimerList(list)
 
                self["actions"] = ActionMap(["OkCancelActions"], 
                        {
-#                              "ok": self.openEdit,
+                               "ok": self.openEdit,
                                "cancel": self.close
                        })
 
        def openEdit(self):
-               self.session.open(TimerEdit, self["timerlist"].getCurrent()[0])
+               self.session.open(TimerEntry, self["timerlist"].getCurrent()[0])
+               #self.session.open(TimerEdit, self["timerlist"].getCurrent()[0])