X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/cfdc155f46f816c17d098ba0bb2a3bd2037e2f1e..69ae4780ab741f24b1d5cd48c953f77bc440a27a:/lib/python/Components/VolumeBar.py diff --git a/lib/python/Components/VolumeBar.py b/lib/python/Components/VolumeBar.py index 09dde5e1..1ada3c69 100644 --- a/lib/python/Components/VolumeBar.py +++ b/lib/python/Components/VolumeBar.py @@ -1,17 +1,15 @@ -from HTMLComponent import * -from GUIComponent import * -from VariableValue import * -from VariableText import * +from HTMLComponent import HTMLComponent +from GUIComponent import GUIComponent +from VariableValue import VariableValue 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)