git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add delete to advanced restore
[enigma2.git]
/
lib
/
python
/
Components
/
Sources
/
Progress.py
diff --git
a/lib/python/Components/Sources/Progress.py
b/lib/python/Components/Sources/Progress.py
index b96065b3d1bda98bcae8a25837640b35e22cc2cb..d57a617905dfe835ef4e401c2fa8345e23687e3b 100644
(file)
--- a/
lib/python/Components/Sources/Progress.py
+++ b/
lib/python/Components/Sources/Progress.py
@@
-12,5
+12,12
@@
class Progress(Source):
def setValue(self, value):
self.__value = value
self.changed((self.CHANGED_ALL,))
def setValue(self, value):
self.__value = value
self.changed((self.CHANGED_ALL,))
+
+ def setRange(self, range = 100):
+ self.range = range
+ self.changed((self.CHANGED_ALL,))
+
+ def getRange(self):
+ return self.range
value = property(getValue, setValue)
value = property(getValue, setValue)