Components/Lcd.py: use 1 instead of 0 for Oled standby default value (with new driver...
[enigma2.git] / lib / python / Components / Slider.py
1 from HTMLComponent import HTMLComponent
2 from GUIComponent import GUIComponent
3 from VariableValue import VariableValue
4
5 from enigma import eSlider
6
7 class Slider(VariableValue, HTMLComponent, GUIComponent):
8         def __init__(self, min, max):
9                 VariableValue.__init__(self)
10                 GUIComponent.__init__(self)
11                 
12                 self.min = min
13                 self.max = max
14
15         GUI_WIDGET = eSlider
16         
17         def postWidgetCreate(self, instance):
18                 instance.setRange(self.min, self.max)