X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/c0d78035b8c76e719bf7c05ff3812eb5a6ce9fe3..79da420aa414522f8b5477053f0b46e6311f1cc1:/lib/python/Components/VariableText.py diff --git a/lib/python/Components/VariableText.py b/lib/python/Components/VariableText.py index bb8b5fe3..c9533091 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 "")