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())
27 class LabelConditional(Label, ConditionalWidget):
28 def __init__(self, text = "", withTimer = True):
29 ConditionalWidget.__init__(self, withTimer = withTimer)
30 Label.__init__(self, text = text)
32 class BlinkingLabel(Label, BlinkingWidget):
33 def __init__(self, text = ""):
34 Label.__init__(text = text)
35 BlinkingWidget.__init__()
37 def GUIcreate(self, parent):
38 LabelConditional.GUIcreate(self, parent)
41 LabelConditional.GUIcreate(self)
43 class BlinkingLabelConditional(BlinkingWidgetConditional, LabelConditional):
44 def __init__(self, text = ""):
45 LabelConditional.__init__(self, text = text)
46 BlinkingWidgetConditional.__init__(self)
48 def GUIcreate(self, parent):
49 LabelConditional.GUIcreate(self, parent)
52 LabelConditional.GUIcreate(self)