aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/HelpMenu.py
diff options
context:
space:
mode:
authorFraxinas <andreas.frisch@multimedia-labs.de>2009-03-02 17:32:02 +0100
committerFraxinas <andreas.frisch@multimedia-labs.de>2009-03-02 17:32:02 +0100
commite68a1617b7c1efbedf8b28309943dd7669daaad0 (patch)
tree2c45f065213b18f3a2c8a5e8666977f9bbff230d /lib/python/Screens/HelpMenu.py
parent8d2545bc513280abe52d9c0fc2b704de3729a11e (diff)
parentfe12fe9e0ab3a4f9751b67c0aa3751d5864784ba (diff)
downloadenigma2-e68a1617b7c1efbedf8b28309943dd7669daaad0.tar.gz
enigma2-e68a1617b7c1efbedf8b28309943dd7669daaad0.zip
Merge branch 'master' of fraxinas@git.opendreambox.org:/git/enigma2
Diffstat (limited to 'lib/python/Screens/HelpMenu.py')
-rw-r--r--lib/python/Screens/HelpMenu.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/python/Screens/HelpMenu.py b/lib/python/Screens/HelpMenu.py
index abef38db..74882a35 100644
--- a/lib/python/Screens/HelpMenu.py
+++ b/lib/python/Screens/HelpMenu.py
@@ -29,13 +29,13 @@ class HelpMenu(Screen, Rc):
#arrow = self["arrowup"]
print "selection:", selection
- if selection and len(selection) > 1 and selection[1] == "SHIFT":
- self.selectKey("SHIFT")
-
- if selection and len(selection) > 1 and selection[1] == "long":
- self["long_key"].setText(_("Long Keypress"))
- else:
- self["long_key"].setText("")
+ longText = ""
+ if selection and len(selection) > 1:
+ if selection[1] == "SHIFT":
+ self.selectKey("SHIFT")
+ elif selection[1] == "long":
+ longText = _("Long Keypress")
+ self["long_key"].setText(longText)
self.selectKey(selection[0])
#if selection is None:
@@ -55,6 +55,6 @@ class HelpableScreen:
self.session.openWithCallback(self.callHelpAction, HelpMenu, self.helpList)
def callHelpAction(self, *args):
- if len(args):
+ if args:
(actionmap, context, action) = args
actionmap.action(context, action)