X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FLabel.py;h=4d90badc58b03085fc6aab0eb739ec138c70cb16;hb=92456d9542585d58e011fa4f0b501de3ef9c1819;hp=c4efcda4753b3fd0165620d3196d8e34d2239140;hpb=ed6ab83ab71bbef6d8df689f9ea7f9c1474f625f;p=vuplus_dvbapp diff --git a/lib/python/Components/Label.py b/lib/python/Components/Label.py index c4efcda..4d90bad 100644 --- a/lib/python/Components/Label.py +++ b/lib/python/Components/Label.py @@ -6,7 +6,7 @@ from ConditionalWidget import * from enigma import eLabel -class Label(HTMLComponent, GUIComponent, VariableText): +class Label(VariableText, HTMLComponent, GUIComponent): def __init__(self, text=""): GUIComponent.__init__(self) VariableText.__init__(self) @@ -17,20 +17,23 @@ class Label(HTMLComponent, GUIComponent, VariableText): return self.getText() # GUI: - def createWidget(self, parent): - return eLabel(parent) - + GUI_WIDGET = eLabel + 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(ConditionalWidget, Label): +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 + Label.__init__(self, text = text) + +class BlinkingLabel(Label, BlinkingWidget): + def __init__(self, text = ""): + Label.__init__(text = text) + BlinkingWidget.__init__() + +class BlinkingLabelConditional(BlinkingWidgetConditional, LabelConditional): + def __init__(self, text = ""): + LabelConditional.__init__(self, text = text) + BlinkingWidgetConditional.__init__(self)