aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/VolumeBar.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components/VolumeBar.py')
-rw-r--r--lib/python/Components/VolumeBar.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/python/Components/VolumeBar.py b/lib/python/Components/VolumeBar.py
index 09dde5e1..c51bdb19 100644
--- a/lib/python/Components/VolumeBar.py
+++ b/lib/python/Components/VolumeBar.py
@@ -6,12 +6,12 @@ from VariableText import *
from enigma import eSlider
from enigma import eLabel
-class VolumeBar(HTMLComponent, GUIComponent, VariableValue):
+class VolumeBar(VariableValue, HTMLComponent, GUIComponent):
def __init__(self):
VariableValue.__init__(self)
GUIComponent.__init__(self)
- def createWidget(self, parent):
- g = eSlider(parent)
- g.setRange(0, 100)
- return g
+ GUI_WIDGET = eSlider
+
+ def postWidgetCreate(self, instance):
+ instance.setRange(0, 100)