mirror of https://github.com/kivy/kivy.git
adding simple example in slider.py
This commit is contained in:
parent
4a70238fca
commit
ae2c63ec33
|
@ -190,3 +190,11 @@ class Slider(Widget):
|
|||
self.value_pos = touch.pos
|
||||
return True
|
||||
|
||||
if __name__ == '__main__':
|
||||
from kivy.app import App
|
||||
|
||||
class SliderApp(App):
|
||||
def build(self):
|
||||
return Slider()
|
||||
|
||||
SliderApp().run()
|
||||
|
|
Loading…
Reference in New Issue