aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Slider.py
blob: a36a573aeaeb053edaf151a54d955298da4aa5d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from HTMLComponent import HTMLComponent
from GUIComponent import GUIComponent
from VariableValue import VariableValue

from enigma import eSlider

class Slider(VariableValue, HTMLComponent, GUIComponent):
	def __init__(self, min, max):
		VariableValue.__init__(self)
		GUIComponent.__init__(self)
		
		self.min = min
		self.max = max

	GUI_WIDGET = eSlider
	
	def postWidgetCreate(self, instance):
		instance.setRange(self.min, self.max)