aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/PerServiceDisplay.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/PerServiceDisplay.py
parent9c5ae5bc6ef248b414e3153538936477cccfdd20 (diff)
downloadenigma2-c0d78035b8c76e719bf7c05ff3812eb5a6ce9fe3.tar.gz
enigma2-c0d78035b8c76e719bf7c05ff3812eb5a6ce9fe3.zip
simplify GUIcreate/createWidget, fix base class order
Diffstat (limited to 'lib/python/Components/PerServiceDisplay.py')
-rw-r--r--lib/python/Components/PerServiceDisplay.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/python/Components/PerServiceDisplay.py b/lib/python/Components/PerServiceDisplay.py
index 821f6d16..22305ca9 100644
--- a/lib/python/Components/PerServiceDisplay.py
+++ b/lib/python/Components/PerServiceDisplay.py
@@ -44,12 +44,9 @@ class PerServiceDisplay(PerServiceBase, VariableText):
VariableText.__init__(self)
PerServiceBase.__init__(self, navcore, eventmap)
- def createWidget(self, parent):
- # by default, we use a label to display our data.
- g = eLabel(parent)
- return g
+ GUI_WIDGET = eLabel
-class PerServiceDisplayProgress(GUIComponent, VariableValue, PerServiceBase):
+class PerServiceDisplayProgress(PerServiceBase, VariableValue, GUIComponent):
def __init__(self, navcore, eventmap):
GUIComponent.__init__(self)
VariableValue.__init__(self)
@@ -60,7 +57,4 @@ class PerServiceDisplayProgress(GUIComponent, VariableValue, PerServiceBase):
# start with stopped state, so simulate that
self.event(iPlayableService.evEnd)
- def createWidget(self, parent):
- # by default, we use a label to display our data.
- self.g = eSlider(parent)
- return self.g
+ GUI_WIDGET = eSlider