2011-06-19 17:42:40 +00:00
|
|
|
'''
|
2015-02-12 04:00:30 +00:00
|
|
|
Application built from a .kv file
|
|
|
|
==================================
|
2011-06-19 17:42:40 +00:00
|
|
|
|
2015-02-12 04:43:21 +00:00
|
|
|
This shows how to implicitly use a .kv file for your application. You
|
2015-02-12 04:00:30 +00:00
|
|
|
should see a full screen button labelled "Hello from test.kv".
|
|
|
|
|
|
|
|
After Kivy instantiates a subclass of App, it implicitly searches for a .kv
|
2015-02-12 04:43:21 +00:00
|
|
|
file. The file test.kv is selected because the name of the subclass of App is
|
|
|
|
TestApp, which implies that kivy should try to load "test.kv". That file
|
2015-02-12 04:00:30 +00:00
|
|
|
contains a root Widget.
|
2011-06-19 17:42:40 +00:00
|
|
|
'''
|
|
|
|
|
|
|
|
import kivy
|
|
|
|
kivy.require('1.0.7')
|
|
|
|
|
2011-01-31 16:42:41 +00:00
|
|
|
from kivy.app import App
|
|
|
|
|
2011-06-19 17:42:40 +00:00
|
|
|
|
2011-01-31 16:42:41 +00:00
|
|
|
class TestApp(App):
|
|
|
|
pass
|
|
|
|
|
2016-12-17 09:41:12 +00:00
|
|
|
|
2011-01-31 16:42:41 +00:00
|
|
|
if __name__ == '__main__':
|
|
|
|
TestApp().run()
|