X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/0877ce3b6f6cee972818a8c0a2d1bc862c8482be..29595f9e351b8d7b4f77b0a9885209d45929d2b1:/lib/python/Components/VolumeBar.py diff --git a/lib/python/Components/VolumeBar.py b/lib/python/Components/VolumeBar.py index 63771e24..c51bdb19 100644 --- a/lib/python/Components/VolumeBar.py +++ b/lib/python/Components/VolumeBar.py @@ -6,13 +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)