reoder derivation
[enigma2.git] / lib / python / Components / Label.py
index 7402d722f0b925a6688131271f01d99887bd8d91..730a01e594b33b1cfd0c8cb713cfb6a5eaf2ddfa 100644 (file)
@@ -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):
@@ -22,3 +24,13 @@ class Label(HTMLComponent, GUIComponent, VariableText):
                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)
+               Label.__init__(self, text = text)
\ No newline at end of file