from enigma import iPlayableService
from enigma import eLabel, eSlider, eTimer
-class PerServiceBase(GUIComponent):
+class PerServiceBase(object):
def __init__(self, navcore, eventmap):
- GUIComponent.__init__(self)
self.eventmap = eventmap
self.navcore = navcore
self.navcore.event.append(self.event)
def poll(self):
pass
-class PerServiceDisplay(PerServiceBase, VariableText):
+class PerServiceDisplay(PerServiceBase, VariableText, GUIComponent):
"""Mixin for building components which display something which changes on navigation events, for example "service name" """
def __init__(self, navcore, eventmap):
+ GUIComponent.__init__(self)
VariableText.__init__(self)
PerServiceBase.__init__(self, navcore, eventmap)
from PerServiceDisplay import PerServiceDisplay, PerServiceBase
+from Components.GUIComponent import GUIComponent
from enigma import eTimer, iPlayableService, iSeekableServicePtr, ePositionGauge
import time
self.updateTimer.stop()
self.setText("");
-class ServicePositionGauge(PerServiceBase):
+class ServicePositionGauge(PerServiceBase, GUIComponent):
def __init__(self, navcore):
+ GUIComponent.__init__(self)
PerServiceBase.__init__(self, navcore,
{
iPlayableService.evStart: self.newService,