1 from HTMLComponent import *
2 from GUIComponent import *
3 from VariableText import *
5 from ConditionalWidget import *
7 from enigma import eLabel
9 class Label(VariableText, HTMLComponent, GUIComponent):
10 def __init__(self, text=""):
11 GUIComponent.__init__(self)
12 VariableText.__init__(self)
16 def produceHTML(self):
23 s = self.instance.calculateSize()
24 return (s.width(), s.height())
26 class LabelConditional(Label, ConditionalWidget):
27 def __init__(self, text = "", withTimer = True):
28 ConditionalWidget.__init__(self, withTimer = withTimer)
29 Label.__init__(self, text = text)
31 class BlinkingLabel(Label, BlinkingWidget):
32 def __init__(self, text = ""):
33 Label.__init__(text = text)
34 BlinkingWidget.__init__()
36 class BlinkingLabelConditional(BlinkingWidgetConditional, LabelConditional):
37 def __init__(self, text = ""):
38 LabelConditional.__init__(self, text = text)
39 BlinkingWidgetConditional.__init__(self)