X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/c0d78035b8c76e719bf7c05ff3812eb5a6ce9fe3..8105da47caaa6e47246d73239d056491fa091ae5:/lib/python/Components/VariableValue.py diff --git a/lib/python/Components/VariableValue.py b/lib/python/Components/VariableValue.py index 288de01a..feb45342 100644 --- a/lib/python/Components/VariableValue.py +++ b/lib/python/Components/VariableValue.py @@ -1,5 +1,3 @@ -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""" @@ -9,7 +7,10 @@ class VariableValue(object): 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