1
2
3
4 __author__ = "Ricardo Ribeiro"
5 __credits__ = ["Ricardo Ribeiro"]
6 __license__ = "MIT"
7 __version__ = "0.0"
8 __maintainer__ = "Ricardo Ribeiro"
9 __email__ = "ricardojvr@gmail.com"
10 __status__ = "Development"
11
12
13 from pyforms.gui.Controls.ControlBase import ControlBase
14 import pyforms.Utils.tools as tools
15 from PyQt4 import uic
18
19 _min = 0
20 _max = 100
21
22 - def __init__(self, label = "%p%", defaultValue = 0, min = 0, max = 100):
28
36
37 @property
39
40 @label.setter
42 self._label = value
43 self._form.horizontalSlider.setFormat( self._label )
44
45 @property
47
48 @value.setter
50
51
52 @property
53 - def min(self): return self._form.horizontalSlider.minimum()
54
55 @min.setter
56 - def min(self, value): self._form.horizontalSlider.setMinimum(value)
57
58 @property
59 - def max(self): return self._form.horizontalSlider.maximum()
60
61 @max.setter
62 - def max(self, value): self._form.horizontalSlider.setMaximum(value)
63