generic show/hide support for GUIComponents
[enigma2.git] / lib / python / Components / Label.py
index 730a01e594b33b1cfd0c8cb713cfb6a5eaf2ddfa..5ad071abbfcdb2843548836751c2ce0ccac95972 100644 (file)
@@ -24,13 +24,30 @@ class Label(HTMLComponent, GUIComponent, VariableText):
                s = self.instance.calculateSize()
                return (s.width(), s.height())
 
                s = self.instance.calculateSize()
                return (s.width(), s.height())
 
-       def show(self):
-               self.instance.show()
-
-       def hide(self):
-               self.instance.hide()
-
 class LabelConditional(Label, ConditionalWidget):
        def __init__(self, text = "", withTimer = True):
                ConditionalWidget.__init__(self, withTimer = withTimer)
 class LabelConditional(Label, ConditionalWidget):
        def __init__(self, text = "", withTimer = True):
                ConditionalWidget.__init__(self, withTimer = withTimer)
-               Label.__init__(self, text = text)
\ No newline at end of file
+               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