GUI_WIDGET = eSlider
- def changed(self):
+ def changed(self, what):
+ if what[0] == self.CHANGED_CLEAR:
+ (self.range, self.value) = ((0, 1), 0)
+ return
+
range = self.source.range or 100
value = self.source.value
if value is None:
instance.setRange(self.__start, self.__end)
def setRange(self, range):
- (__start, __end) = range
+ (self.__start, self.__end) = range
if self.instance is not None:
- self.instance.setRange(__start, __end)
+ self.instance.setRange(self.__start, self.__end)
def getRange(self):
return (self.__start, self.__end)