- self.pos = 0
-
- def mainMenu(self):
- print "loading mainmenu XML..."
- menu = mdom.childNodes[0]
- assert menu.tagName == "menu", "root element in menu must be 'menu'!"
- self.session.open(MainMenu, menu, menu.childNodes)
-
- 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 doTimerHide(self):
- if self.state == self.STATE_SHOWN:
- self.instance.hide()
- self.state = self.STATE_HIDDEN
-
- def toggleShow(self):
- if self.state == self.STATE_SHOWN:
- self.instance.hide()
- #pls check animation support, sorry
-# self.startHide()
- self.state = self.STATE_HIDDEN
- else:
- self.instance.show()
-# self.startShow()
- self.state = self.STATE_SHOWN
- #TODO: make it customizable
- self.hideTimer.start(5000)
-
- def zapUp(self):
- self.servicelist.moveUp()
- self.servicelist.zap()
-
- def zapDown(self):
- self.servicelist.moveDown()
- self.servicelist.zap()
-
- def volUp(self):
- eDVBVolumecontrol.getInstance().volumeUp()
- self.volumeBar.setValue(eDVBVolumecontrol.getInstance().getVolume())
-
- def volDown(self):
- eDVBVolumecontrol.getInstance().volumeDown()
- self.volumeBar.setValue(eDVBVolumecontrol.getInstance().getVolume())
+ self["actions"] = HelpableActionMap(self, "MoviePlayerActions",
+ {
+ "leavePlayer": (self.leavePlayer, _("leave movie player..."))
+ })