X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FVariableText.py;h=c95330915c3af65b206df9f60308c65e436b1b4c;hp=bb8b5fe326e96f1f8f5898f1812293df0c58a288;hb=9d9d69d8242d27915c95cb794bd4e7a93759b6db;hpb=c0d78035b8c76e719bf7c05ff3812eb5a6ce9fe3 diff --git a/lib/python/Components/VariableText.py b/lib/python/Components/VariableText.py index bb8b5fe..c953309 100644 --- a/lib/python/Components/VariableText.py +++ b/lib/python/Components/VariableText.py @@ -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 "")