kivy/examples/application/app_with_kv_in_template1.py

22 lines
411 B
Python

'''
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 shows how you can change the directory where the .kv lives.
'''
import kivy
kivy.require('1.0.7')
from kivy.app import App
class TestApp(App):
kv_directory = 'template1'
if __name__ == '__main__':
TestApp().run()