1 from HTMLComponent import *
2 from GUIComponent import *
3 from VariableValue import *
5 from enigma import eSlider
7 # a general purpose progress bar
8 class ProgressBar(HTMLComponent, GUIComponent, VariableValue):
10 GUIComponent.__init__(self)
11 VariableValue.__init__(self)
13 def createWidget(self, parent):
14 self.g = eSlider(parent)
15 self.g.setRange(0, 100)
18 def setRange(self, start, end):
19 self.g.setRange(start, end)
21 def setValue(self, value):
22 self.g.setValue(value)