reoder derivation
[enigma2.git] / lib / python / Components / Label.py
index 609c6de..730a01e 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):
@@ -15,6 +17,20 @@ class Label(HTMLComponent, GUIComponent, VariableText):
                return self.getText()
 
 # GUI:
-       def createWidget(self, parent, skindata):
+       def createWidget(self, parent):
                return eLabel(parent)
        
+       def getSize(self):
+               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