Merge remote-tracking branch 'origin/bug_453_multiepg_no_more_ask_bouquet'
[vuplus_dvbapp] / lib / python / Components / VariableValue.py
index 288de01..feb4534 100644 (file)
@@ -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