-# self["okbutton"] = Button("mainMenu", [self.mainMenu])
-
- self["CurrentTime"] = ServicePosition(self.session.nav, ServicePosition.TYPE_REMAINING)
- # Clock()
-
- self["Volume"] = self.volumeBar
-
- self["ServiceName"] = ServiceName(self.session.nav)
-
- self["Event_Now"] = EventInfo(self.session.nav, EventInfo.Now)
- self["Event_Next"] = EventInfo(self.session.nav, EventInfo.Next)
-
- self["Event_Now_Duration"] = EventInfo(self.session.nav, EventInfo.Now_Duration)
- self["Event_Next_Duration"] = EventInfo(self.session.nav, EventInfo.Next_Duration)
-
- self.recording = None
-
- 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)