X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FVolumeBar.py;h=c51bdb1913b2369ef5dff55c7be245a3293c1b4d;hb=834bbf9162cfd90cd063e25aa45fc3c28fdee742;hp=6eace42c3f7ea9ceeb98a13f8b119ff1806c062f;hpb=aa3e781f31a04223416f0a34b25ab95fc0bef429;p=vuplus_dvbapp diff --git a/lib/python/Components/VolumeBar.py b/lib/python/Components/VolumeBar.py index 6eace42..c51bdb1 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)