Skip to content

Commit

Permalink
added example for ActieScherm
Browse files Browse the repository at this point in the history
  • Loading branch information
GijsTimmers committed Mar 5, 2015
1 parent 4f15961 commit b4e2a18
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions app-development/labeltest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/python

from kivy.app import App

from kivy.uix.label import Label
from kivy.uix.boxlayout import BoxLayout



def scherm():

b = BoxLayout(orientation="vertical")

bnrtitle = Label(text="kotnetcli", font_size=30, size_hint_y=None, height=60)
bnrsubtitle = Label(text="by Gijs Timmers and Jo van Bulck", font_size=14, size_hint_y=None, height=30)

## Kopieer: cp /usr/share/fonts/truetype/droid/DroidSansMono.ttf .
outputtekst = Label(text="Netlogin openen... [ OK ]\n" + \
"Gegevens invoeren... [ OK ]\n" + \
"Gegevens opsturen... [ OK ]",
font_size=20, font_name="DroidSansMono.ttf")

b.add_widget(bnrtitle)
b.add_widget(bnrsubtitle)
b.add_widget(outputtekst)

return b





class TutorialApp(App):
def build(self):
return scherm()

if __name__ == "__main__":
TutorialApp().run()

0 comments on commit b4e2a18

Please sign in to comment.