aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Screens')
-rw-r--r--lib/python/Screens/EpgSelection.py24
-rw-r--r--lib/python/Screens/HelpMenu.py12
2 files changed, 20 insertions, 16 deletions
diff --git a/lib/python/Screens/EpgSelection.py b/lib/python/Screens/EpgSelection.py
index c8db81b3..378e0d89 100644
--- a/lib/python/Screens/EpgSelection.py
+++ b/lib/python/Screens/EpgSelection.py
@@ -155,25 +155,25 @@ class EPGSelection(Screen):
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:
- self["now_button"].showWidget()
- self["now_button_sel"].hideWidget()
+ self["now_button"].show()
+ self["now_button_sel"].hide()
if state == 2:
- self["next_button_sel"].showWidget()
- self["next_button"].hideWidget()
+ self["next_button_sel"].show()
+ self["next_button"].hide()
else:
- self["next_button"].showWidget()
- self["next_button_sel"].hideWidget()
+ self["next_button"].show()
+ self["next_button_sel"].hide()
if state == 3:
- self["more_button_sel"].showWidget()
- self["more_button"].hideWidget()
+ self["more_button_sel"].show()
+ self["more_button"].hide()
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:
diff --git a/lib/python/Screens/HelpMenu.py b/lib/python/Screens/HelpMenu.py
index e947ac91..06f0cfab 100644
--- a/lib/python/Screens/HelpMenu.py
+++ b/lib/python/Screens/HelpMenu.py
@@ -31,12 +31,14 @@ class HelpMenu(Screen):
def SelectionChanged(self):
selection = self["list"].getCurrent()[3]
+ arrow = self["arrowup"]
+
if selection is None:
- self["arrowup"].instance.hide()
+ arrow.hide()
else:
- self["arrowup"].moveTo(selection[1], selection[2], 1)
- self["arrowup"].startMoving()
- self["arrowup"].instance.show()
+ arrow.moveTo(selection[1], selection[2], 1)
+ arrow.startMoving()
+ arrow.show()
class HelpableScreen:
def __init__(self):
@@ -44,8 +46,10 @@ class HelpableScreen:
{
"displayHelp": self.showHelp,
})
+
def showHelp(self):
self.session.openWithCallback(self.callHelpAction, HelpMenu, self.helpList)
+
def callHelpAction(self, *args):
if len(args):
(actionmap, context, action) = args