2011-06-19 17:42:40 +00:00
|
|
|
'''
|
|
|
|
Application from a .kv
|
|
|
|
======================
|
|
|
|
|
|
|
|
The root application is created from the corresponding .kv. Check the test.kv
|
|
|
|
file to see what will be the root widget.
|
|
|
|
This example show how you can change the directory where the .kv live.
|
|
|
|
'''
|
|
|
|
|
|
|
|
import kivy
|
|
|
|
kivy.require('1.0.7')
|
|
|
|
|
2011-04-19 09:46:27 +00:00
|
|
|
from kivy.app import App
|
|
|
|
|
2011-06-19 17:42:40 +00:00
|
|
|
|
2011-04-19 09:46:27 +00:00
|
|
|
class TestApp(App):
|
2011-06-19 17:42:40 +00:00
|
|
|
kv_directory = 'template1'
|
2011-04-19 09:46:27 +00:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2011-06-19 17:42:40 +00:00
|
|
|
TestApp().run()
|