- def createWidget(self, parent, skindata):
- # by default, we use a label to display our data.
- g = eLabel(parent)
- return g
+ def disablePolling(self):
+ self.enablePolling(interval=0)
+
+ def poll(self):
+ pass
+
+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)
+
+ GUI_WIDGET = eLabel
+
+class PerServiceDisplayProgress(PerServiceBase, VariableValue, GUIComponent):
+ def __init__(self, navcore, eventmap):
+ GUIComponent.__init__(self)
+ VariableValue.__init__(self)
+ self.eventmap = eventmap
+ self.navcore = navcore
+ self.navcore.event.append(self.event)
+
+ # start with stopped state, so simulate that
+ self.event(iPlayableService.evEnd)