1 from HTMLComponent import HTMLComponent
2 from GUIComponent import GUIComponent
3 from VariableValue import VariableValue
5 from enigma import eSlider
7 # a general purpose progress bar
8 class ProgressBar(VariableValue, HTMLComponent, GUIComponent, object):
10 GUIComponent.__init__(self)
11 VariableValue.__init__(self)
17 def postWidgetCreate(self, instance):
18 instance.setRange(self.__start, self.__end)
20 def setRange(self, range):
21 (__start, __end) = range
22 if self.instance is not None:
23 self.instance.setRange(__start, __end)
26 return (self.__start, self.__end)
28 range = property(getRange, setRange)