1 from HTMLComponent import *
2 from GUIComponent import *
3 from VariableText import *
5 from ConditionalWidget import *
7 from enigma import eLabel
9 class Label(HTMLComponent, GUIComponent, VariableText):
10 def __init__(self, text=""):
11 GUIComponent.__init__(self)
12 VariableText.__init__(self)
16 def produceHTML(self):
20 def createWidget(self, parent):
24 s = self.instance.calculateSize()
25 return (s.width(), s.height())
33 class LabelConditional(ConditionalWidget, Label):
34 def __init__(self, text = "", withTimer = True):
35 ConditionalWidget.__init__(self, withTimer = withTimer)
36 Label.__init__(self, text = text)