app_test/hello_world.py

17 lines
334 B
Python
Raw Normal View History

2023-05-09 20:29:46 +02:00
#/usr/bin/env python3
# -*- coding: utf-8 -*-
from kivy.app import App
from kivy.uix.label import Label
class MainApp(App):
def build(self):
label = Label(text='Hello World!',
size_hint=(.5, .5),
pos_hint={'center_x': .5, 'center_y': .5})
return label
if __name__ == '__main__':
app = MainApp()
app.run()