aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens
diff options
context:
space:
mode:
authorRonny Strutz <ronny.strutz@multimedia-labs.de>2005-05-17 00:57:11 +0000
committerRonny Strutz <ronny.strutz@multimedia-labs.de>2005-05-17 00:57:11 +0000
commit0905e6fa81fbe52817b2e67081da9944131a96fb (patch)
tree1b678fa282d663b808c7dd91831715c7aef81ca4 /lib/python/Screens
parent4e3284dab165594ee1e9393d34f9c688bd0fa5a9 (diff)
downloadenigma2-0905e6fa81fbe52817b2e67081da9944131a96fb.tar.gz
enigma2-0905e6fa81fbe52817b2e67081da9944131a96fb.zip
added
- open servicelist with inc/dec actual entry - toggle infobar with ok - hide infobar with exit
Diffstat (limited to 'lib/python/Screens')
-rw-r--r--lib/python/Screens/InfoBar.py29
1 files changed, 24 insertions, 5 deletions
diff --git a/lib/python/Screens/InfoBar.py b/lib/python/Screens/InfoBar.py
index 5eb5ab10..d868fd8b 100644
--- a/lib/python/Screens/InfoBar.py
+++ b/lib/python/Screens/InfoBar.py
@@ -22,11 +22,14 @@ class InfoBar(Screen):
self["actions"] = ActionMap( [ "InfobarActions" ],
{
- "switchChannel": self.switchChannel,
+ "switchChannelUp": self.switchChannelUp,
+ "switchChannelDown": self.switchChannelDown,
"mainMenu": self.mainMenu,
"zapUp": self.zapUp,
"zapDown": self.zapDown,
- "instantRecord": self.instantRecord
+ "instantRecord": self.instantRecord,
+ "hide": self.hide,
+ "toggleShow": self.toggleShow
})
self["okbutton"] = Button("mainMenu", [self.mainMenu])
@@ -48,14 +51,30 @@ class InfoBar(Screen):
assert menu.tagName == "menu", "root element in menu must be 'menu'!"
self.session.open(Menu, menu, menu.childNodes)
- def switchChannel(self):
+ def switchChannelUp(self):
+ self.servicelist.moveUp()
self.session.execDialog(self.servicelist)
+ def switchChannelDown(self):
+ self.servicelist.moveDown()
+ self.session.execDialog(self.servicelist)
+
+ def hide(self):
+ self.instance.hide()
+
+ def toggleShow(self):
+ if self.instance.isVisible():
+ self.instance.hide()
+ else:
+ self.instance.show()
+
def zapUp(self):
- self.servicelist.zapUp()
+ self.servicelist.moveUp()
+ self.servicelist.zap()
def zapDown(self):
- self.servicelist.zapDown()
+ self.servicelist.moveDown()
+ self.servicelist.zap()
def instantRecord(self):
if self.recording != None: