X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/572caca1ba06dd8247724c9f5d6bcad515e2edf4..1e1c01fece5a4a86a762af265e382da5dbb2d8cb:/lib/python/Components/Label.py diff --git a/lib/python/Components/Label.py b/lib/python/Components/Label.py index c2d57743..129180f4 100644 --- a/lib/python/Components/Label.py +++ b/lib/python/Components/Label.py @@ -2,6 +2,8 @@ from HTMLComponent import * from GUIComponent import * from VariableText import * +from ConditionalWidget import * + from enigma import eLabel class Label(HTMLComponent, GUIComponent, VariableText): @@ -27,3 +29,31 @@ class Label(HTMLComponent, GUIComponent, VariableText): def hide(self): self.instance.hide() + +class LabelConditional(Label, ConditionalWidget): + def __init__(self, text = "", withTimer = True): + ConditionalWidget.__init__(self, withTimer = withTimer) + Label.__init__(self, text = text) + +class BlinkingLabel(Label, BlinkingWidget): + def __init__(self, text = ""): + Label.__init__(text = text) + BlinkingWidget.__init__() + + def GUIcreate(self, parent): + LabelConditional.GUIcreate(self, parent) + + def GUIdelete(self): + LabelConditional.GUIcreate(self) + +class BlinkingLabelConditional(BlinkingWidgetConditional, LabelConditional): + def __init__(self, text = ""): + LabelConditional.__init__(self, text = text) + BlinkingWidgetConditional.__init__(self) + + def GUIcreate(self, parent): + LabelConditional.GUIcreate(self, parent) + + def GUIdelete(self): + LabelConditional.GUIcreate(self) + \ No newline at end of file