from VariableText import *
from VariableValue import *
-from enigma import pNavigation
+from enigma import iPlayableService
from enigma import eLabel, eSlider
class PerServiceDisplay(GUIComponent, VariableText):
self.navcore.event.append(self.event)
# start with stopped state, so simulate that
- self.event(pNavigation.evStopService)
+ self.event(iPlayableService.evEnd)
def event(self, ev):
# loop up if we need to handle this event
self.navcore.event.append(self.event)
# start with stopped state, so simulate that
- self.event(pNavigation.evStopService)
+ self.event(iPlayableService.evEnd)
def createWidget(self, parent):
from PerServiceDisplay import *
-#from enigma import pNavigation, iServiceInformationPtr
+#from enigma import iPlayableService, iServiceInformationPtr
from enigma import *
class ServiceName(PerServiceDisplay):
def __init__(self, navcore):
PerServiceDisplay.__init__(self, navcore,
{
- pNavigation.evNewService: self.newService,
- pNavigation.evStopService: self.stopEvent
+ iPlayableService.evStart: self.newService,
+ iPlayableService.evEnd: self.stopEvent
})
def newService(self):
from enigma import eTimer
-from enigma import pNavigation, iSeekableServicePtr
+from enigma import iPlayableService, iSeekableServicePtr
class ServicePosition(PerServiceDisplay):
TYPE_LENGTH = 0,
self.updateTimer.timeout.get().append(self.update)
PerServiceDisplay.__init__(self, navcore,
{
- pNavigation.evNewService: self.newService,
- pNavigation.evStopService: self.stopEvent
+ iPlayableService.evStart: self.newService,
+ iPlayableService.evEnd: self.stopEvent
})
self.type = type
# self.setType(type)