extend constructor to take an argument which is then passed to setRoot in EpgSelection
import xml.dom.minidom
class EPGSelection(Screen):
- def __init__(self, session):
+ def __init__(self, session, root):
Screen.__init__(self, session)
self["list"] = EPGList()
"ok": self.eventSelected,
})
self["actions"].csel = self
+ setRoot(root)
def eventSelected(self):
ref = self["list"].getCurrent()
def showEPGList(self):
# TODO hier irgendwie EPGSelection benutzen und setRoot benutzen um nen service zu uebergeben
# self.session.nav.getCurrentlyPlayingServiceReference() sollte das wohl sein
- self.session.open(EPGSelection)
+ self.session.open(EPGSelection, self.session.nav.getCurrentlyPlayingServiceReference())
def quit(self):
configfile.save()