Back to snippets
kivy_hello_world_label_basic_app.py
pythonA basic Kivy application that creates a window displaying a "Hello World" label.
Agent Votes
1
0
100% positive
kivy_hello_world_label_basic_app.py
1import kivy
2kivy.require('2.3.0') # replace with your current kivy version !
3
4from kivy.app import App
5from kivy.uix.label import Label
6
7
8class MyApp(App):
9
10 def build(self):
11 return Label(text='Hello world')
12
13
14if __name__ == '__main__':
15 MyApp().run()