Here's my first kivy program after a while.
Kivy is Open source Python library for rapid development of applications that make use of innovative user interfaces, such as multi-touch apps. (copied it from http://kivy.org)
import kivy kivy.require('1.10.0') # replace with your current kivy version ! from kivy.app import App from kivy.uix.label import Label class MyApp(App): def build(self): return Label(text='Hello world') if __name__ == '__main__': MyApp().run()
If we saved it with name main.py, wu could run it with command
python main.py
on some old package, we have to use command
kivy main.py
And we have this.
No comments:
Post a Comment