add a very complex advanced sat config
[enigma2.git] / lib / python / Components / ProgressBar.py
1 from HTMLComponent import *
2 from GUIComponent import *
3 from VariableValue import *
4
5 from enigma import eSlider
6
7 # a general purpose progress bar
8 class ProgressBar(HTMLComponent, GUIComponent, VariableValue):
9         def __init__(self):
10                 GUIComponent.__init__(self)
11                 VariableValue.__init__(self)
12
13         def createWidget(self, parent):
14                 self.g = eSlider(parent)
15                 self.g.setRange(0, 100)
16                 return self.g
17
18         def setRange(self, start, end):
19                 self.g.setRange(start, end)
20
21         def setValue(self, value):
22                 self.g.setValue(value)
23
24
25