X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FVariableValue.py;h=feb453424b9948b3629f9c4c1759a272d23a63a5;hb=62398546079455cab5f63f5988a1f2a6bc7e3e07;hp=288de01a43431aea06307f21a7d63a8d66c97bef;hpb=c0d78035b8c76e719bf7c05ff3812eb5a6ce9fe3;p=vuplus_dvbapp diff --git a/lib/python/Components/VariableValue.py b/lib/python/Components/VariableValue.py index 288de01..feb4534 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