add slider (wip)

This commit is contained in:
Mathieu Virbel 2010-11-05 19:43:17 -04:00
parent a381d0d8b7
commit 8d9f41b373
1 changed files with 22 additions and 0 deletions

22
kivy/uix/slider.py Normal file
View File

@ -0,0 +1,22 @@
'''
Slider:
'''
from kivy.uix.widget import Widget
from kivy.c_ext.properties import NumericProperty
class Slider(Widget):
def __init__(self, **kwargs):
super(Slider, self).__init__(**kwargs)
#: Value of the slider
value = NumericProperty(0)
#: Minimum value of the slider (used for rendering)
min = NumericProperty(0)
#: Maximum value of the slider (used for rendering)
max = NumericProperty(100)