refs bug #429
[enigma2.git] / lib / python / Components / VariableText.py
index bb8b5fe326e96f1f8f5898f1812293df0c58a288..c95330915c3af65b206df9f60308c65e436b1b4c 100644 (file)
@@ -1,5 +1,3 @@
-import skin
-
 class VariableText(object):
        """VariableText can be used for components which have a variable text, based on any widget with setText call"""
        
@@ -11,7 +9,7 @@ class VariableText(object):
        def setText(self, text):
                self.message = text
                if self.instance:
-                       self.instance.setText(self.message)
+                       self.instance.setText(self.message or "")
 
        def setMarkedPos(self, pos):
                if self.instance:
@@ -23,4 +21,4 @@ class VariableText(object):
        text = property(getText, setText)
        
        def postWidgetCreate(self, instance):
-               instance.setText(self.message)
+               instance.setText(self.message or "")