display clock png in single epg list for fitting timers (we have a problem with the...
[enigma2.git] / lib / python / Screens / EpgSelection.py
index c8db81b33ba4ed8662f5f2409f013a9add88ff10..bf841fa4ba8fac86753c332fc2f620975b756a54 100644 (file)
@@ -46,7 +46,7 @@ class EPGSelection(Screen):
                        self.zapFunc = zapFunc
 
                self["key_green"] = Button(_("Add timer"))
                        self.zapFunc = zapFunc
 
                self["key_green"] = Button(_("Add timer"))
-               self["list"] = EPGList(self.type, self.onSelectionChanged)
+               self["list"] = EPGList(type = self.type, selChangedCB = self.onSelectionChanged, timer = self.session.nav.RecordTimer)
 
                class ChannelActionMap(ActionMap):
                        def action(self, contexts, action):
 
                class ChannelActionMap(ActionMap):
                        def action(self, contexts, action):
@@ -155,25 +155,25 @@ class EPGSelection(Screen):
 
        def applyButtonState(self, state):
                if state == 1:
 
        def applyButtonState(self, state):
                if state == 1:
-                       self["now_button_sel"].showWidget()
-                       self["now_button"].hideWidget()
+                       self["now_button_sel"].show()
+                       self["now_button"].hide()
                else:
                else:
-                       self["now_button"].showWidget()
-                       self["now_button_sel"].hideWidget()
+                       self["now_button"].show()
+                       self["now_button_sel"].hide()
 
                if state == 2:
 
                if state == 2:
-                       self["next_button_sel"].showWidget()
-                       self["next_button"].hideWidget()
+                       self["next_button_sel"].show()
+                       self["next_button"].hide()
                else:
                else:
-                       self["next_button"].showWidget()
-                       self["next_button_sel"].hideWidget()
+                       self["next_button"].show()
+                       self["next_button_sel"].hide()
 
                if state == 3:
 
                if state == 3:
-                       self["more_button_sel"].showWidget()
-                       self["more_button"].hideWidget()
+                       self["more_button_sel"].show()
+                       self["more_button"].hide()
                else:
                else:
-                       self["more_button"].showWidget()
-                       self["more_button_sel"].hideWidget()
+                       self["more_button"].show()
+                       self["more_button_sel"].hide()
 
        def onSelectionChanged(self):
                if self.type == EPG_TYPE_MULTI:
 
        def onSelectionChanged(self):
                if self.type == EPG_TYPE_MULTI: