Hello World
This commit is contained in:
parent
7d0f5d3b4d
commit
d35f0efdb2
2 changed files with 19 additions and 2 deletions
16
hello_world.py
Normal file
16
hello_world.py
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
#/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()
|
|
@ -1,2 +1,3 @@
|
||||||
packaging
|
packaging
|
||||||
pygame
|
pygame
|
||||||
|
buildozer
|
||||||
|
|
Loading…
Reference in a new issue