git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't show frontend data when no frontend data is available (remove exception)
[enigma2.git]
/
lib
/
python
/
Screens
/
EpgSelection.py
diff --git
a/lib/python/Screens/EpgSelection.py
b/lib/python/Screens/EpgSelection.py
index c8db81b33ba4ed8662f5f2409f013a9add88ff10..7f1b204cca435bd02d6f79526a21a38a961830a7 100644
(file)
--- a/
lib/python/Screens/EpgSelection.py
+++ b/
lib/python/Screens/EpgSelection.py
@@
-46,11
+46,11
@@
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):
- ActionMap.action(self, contexts, action)
+
return
ActionMap.action(self, contexts, action)
self["actions"] = ChannelActionMap(["EPGSelectActions", "OkCancelActions"],
{
self["actions"] = ChannelActionMap(["EPGSelectActions", "OkCancelActions"],
{
@@
-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"].show
Widget
()
- self["now_button"].hide
Widget
()
+ self["now_button_sel"].show()
+ self["now_button"].hide()
else:
else:
- self["now_button"].show
Widget
()
- self["now_button_sel"].hide
Widget
()
+ self["now_button"].show()
+ self["now_button_sel"].hide()
if state == 2:
if state == 2:
- self["next_button_sel"].show
Widget
()
- self["next_button"].hide
Widget
()
+ self["next_button_sel"].show()
+ self["next_button"].hide()
else:
else:
- self["next_button"].show
Widget
()
- self["next_button_sel"].hide
Widget
()
+ self["next_button"].show()
+ self["next_button_sel"].hide()
if state == 3:
if state == 3:
- self["more_button_sel"].show
Widget
()
- self["more_button"].hide
Widget
()
+ self["more_button_sel"].show()
+ self["more_button"].hide()
else:
else:
- self["more_button"].show
Widget
()
- self["more_button_sel"].hide
Widget
()
+ 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: