Merge branch 'bug_271_ac3pcm_delay_servicemp3' into experimental
[enigma2.git] / lib / python / Components / Sources / Progress.py
1 from Source import Source
2
3 class Progress(Source):
4         def __init__(self, value = 0, range = 100):
5                 Source.__init__(self)
6                 self.__value = value
7                 self.range = range
8
9         def getValue(self):
10                 return self.__value
11
12         def setValue(self, value):
13                 self.__value = value
14                 self.changed((self.CHANGED_ALL,))
15                 
16         def setRange(self, range = 100):
17                 self.range = range
18                 self.changed((self.CHANGED_ALL,))
19
20         def getRange(self):
21                 return self.range
22
23         value = property(getValue, setValue)