一、建立kivy模板文件。
#:kivy 1.0
Button:
text: 'Hello world'
保存为test.kv
二、建立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.
'''
import kivy
kivy.require('1.0.7')
from kivy.app import App
class TestApp(App):
pass
if __name__ == '__main__':
TestApp().run()
保存为main.py
三、执行kivy.bat main.py
结果就出来了。