aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Sources/Progress.py
blob: b96065b3d1bda98bcae8a25837640b35e22cc2cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from Source import Source

class Progress(Source):
	def __init__(self, value = 0, range = 100):
		Source.__init__(self)
		self.__value = value
		self.range = range

	def getValue(self):
		return self.__value

	def setValue(self, value):
		self.__value = value
		self.changed((self.CHANGED_ALL,))

	value = property(getValue, setValue)