-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
-class Slider(HTMLComponent, GUIComponent, VariableValue):
+class Slider(VariableValue, HTMLComponent, GUIComponent):
def __init__(self, min, max):
VariableValue.__init__(self)
GUIComponent.__init__(self)
self.min = min
self.max = max
- def createWidget(self, parent):
- g = eSlider(parent)
- g.setRange(self.min, self.max)
- return g
\ No newline at end of file
+ GUI_WIDGET = eSlider
+
+ def postWidgetCreate(self, instance):
+ instance.setRange(self.min, self.max)