user argument to set current service
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Thu, 10 Nov 2005 16:09:39 +0000 (16:09 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Thu, 10 Nov 2005 16:09:39 +0000 (16:09 +0000)
extend constructor to take an argument which is then passed to setRoot in EpgSelection

lib/python/Screens/EpgSelection.py
lib/python/Screens/InfoBar.py

index aeab4f03f3864502c4e4dd6dbfa2031563696dbb..4391409a8e124e85f914937546936f31372e8740 100644 (file)
@@ -10,7 +10,7 @@ from Screens.FixedMenu import FixedMenu
 import xml.dom.minidom
 
 class EPGSelection(Screen):
-       def __init__(self, session):
+       def __init__(self, session, root):
                Screen.__init__(self, session)
 
                self["list"] = EPGList()
@@ -26,6 +26,7 @@ class EPGSelection(Screen):
                                "ok": self.eventSelected,
                        })
                self["actions"].csel = self
+               setRoot(root)
 
        def eventSelected(self):
                ref = self["list"].getCurrent()
index 516d44c50158d76cbe73958be0726cc64c5a9ce1..319ecbe4d705f2dc8b180acf845b116fd8163e5b 100644 (file)
@@ -217,7 +217,7 @@ class InfoBar(Screen):
        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()