aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Label.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-05-01 11:47:04 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-05-01 11:47:04 +0000
commitc0d78035b8c76e719bf7c05ff3812eb5a6ce9fe3 (patch)
tree22d7ac7e4f0aaf3b91574d81ac30fd6a9d97fdb7 /lib/python/Components/Label.py
parent9c5ae5bc6ef248b414e3153538936477cccfdd20 (diff)
downloadenigma2-c0d78035b8c76e719bf7c05ff3812eb5a6ce9fe3.tar.gz
enigma2-c0d78035b8c76e719bf7c05ff3812eb5a6ce9fe3.zip
simplify GUIcreate/createWidget, fix base class order
Diffstat (limited to 'lib/python/Components/Label.py')
-rw-r--r--lib/python/Components/Label.py20
1 files changed, 3 insertions, 17 deletions
diff --git a/lib/python/Components/Label.py b/lib/python/Components/Label.py
index 5ad071ab..4d90badc 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,9 +17,8 @@ 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())
@@ -34,20 +33,7 @@ class BlinkingLabel(Label, BlinkingWidget):
Label.__init__(text = text)
BlinkingWidget.__init__()
- def GUIcreate(self, parent):
- LabelConditional.GUIcreate(self, parent)
-
- def GUIdelete(self):
- LabelConditional.GUIcreate(self)
-
class BlinkingLabelConditional(BlinkingWidgetConditional, LabelConditional):
def __init__(self, text = ""):
LabelConditional.__init__(self, text = text)
BlinkingWidgetConditional.__init__(self)
-
- def GUIcreate(self, parent):
- LabelConditional.GUIcreate(self, parent)
-
- def GUIdelete(self):
- LabelConditional.GUIcreate(self)
- \ No newline at end of file