lib/python/Plugins/DemoPlugins/TestPlugin/Makefile
lib/python/Plugins/Extensions/Makefile
lib/python/Plugins/Extensions/TuxboxPlugins/Makefile
-lib/python/Plugins/Extensions/WebInterface/Makefile
-lib/python/Plugins/Extensions/WebInterface/web/Makefile
-lib/python/Plugins/Extensions/WebInterface/web-data/Makefile
lib/python/Plugins/Extensions/FileManager/Makefile
lib/python/Plugins/Extensions/CutListEditor/Makefile
lib/python/Plugins/Extensions/ZappingAlternatives/Makefile
from Screens.MessageBox import MessageBox
from InfoBarGenerics import InfoBarShowHide, InfoBarMenu, InfoBarServiceName, InfoBarInstantRecord, InfoBarTimeshift, InfoBarSeek, InfoBarTimeshiftState, InfoBarExtensions, InfoBarSubtitleSupport
+from enigma import eTimer
+
class SubservicesQuickzap(InfoBarShowHide, InfoBarMenu, InfoBarServiceName, InfoBarInstantRecord, InfoBarSeek, InfoBarTimeshift, InfoBarTimeshiftState, InfoBarExtensions, InfoBarSubtitleSupport, Screen):
def __init__(self, session, subservices):
Screen.__init__(self, session)
self.updateSubservices()
self.currentlyPlayingSubservice = 0
-
- self.onLayoutFinish.append(self.playSubservice)
-
+
+ self.timer = eTimer()
+ self.timer.timeout.get().append(self.playSubservice)
+ self.onLayoutFinish.append(self.onLayoutFinished)
+
self["actions"] = NumberActionMap( [ "InfobarSubserviceQuickzapActions", "NumberActions", "DirectionActions", "ColorActions" ],
{
"up": self.showSelection,
"0": self.keyNumberGlobal
}, -1)
-
-
+ def onLayoutFinished(self):
+ self.timer.start(0,True)
+
def updateSubservices(self):
self.service = self.session.nav.getCurrentService()
self.subservices = self.service and self.service.subServices()
self.close()
def playSubservice(self, number = 0):
+ print "playSubservice"
newservice = self.subservices.getSubservice(number)
if newservice.valid():
del self.subservices