X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/aa3e781f31a04223416f0a34b25ab95fc0bef429..29595f9e351b8d7b4f77b0a9885209d45929d2b1:/lib/python/Components/VolumeBar.py diff --git a/lib/python/Components/VolumeBar.py b/lib/python/Components/VolumeBar.py index 6eace42c..c51bdb19 100644 --- a/lib/python/Components/VolumeBar.py +++ b/lib/python/Components/VolumeBar.py @@ -1,15 +1,17 @@ from HTMLComponent import * from GUIComponent import * from VariableValue import * +from VariableText import * -class VolumeBar(HTMLComponent, GUIComponent, VariableValue): - +from enigma import eSlider +from enigma import eLabel + +class VolumeBar(VariableValue, HTMLComponent, GUIComponent): def __init__(self): - GUIComponent.__init__(self) VariableValue.__init__(self) + GUIComponent.__init__(self) + + GUI_WIDGET = eSlider - def createWidget(self, parent, skindata): - g = eSlider(parent) - g.setRange(0, 100) - return g - + def postWidgetCreate(self, instance): + instance.setRange(0, 100)