-import skin
-
class VariableValue(object):
"""VariableValue can be used for components which have a variable value (like eSlider), based on any widget with setValue call"""
def setValue(self, value):
self.__value = value
if self.instance:
- self.instance.setValue(self.__value)
+ try:
+ self.instance.setValue(self.__value)
+ except TypeError:
+ self.instance.setValue(0)
def getValue(self):
return self.__value