Last active
July 1, 2018 02:25
-
-
Save Mr-Coxall/ccd1ab88db22c7aa30e3aa2cba861b39 to your computer and use it in GitHub Desktop.
hello_world_gui.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Created by: Mr. Coxall | |
# Created on: Aug 2018 | |
# Created for: ICS3U | |
# This program is the Hello, World program, but with a GUI | |
import ui | |
view = ui.load_view() | |
view.present('sheet') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"selected" : false, | |
"frame" : "{{0, 0}, {1024, 768}}", | |
"class" : "View", | |
"nodes" : [ | |
{ | |
"selected" : true, | |
"frame" : "{{423, 324}, {207, 64}}", | |
"class" : "Label", | |
"nodes" : [ | |
], | |
"attributes" : { | |
"flex" : "WH", | |
"font_name" : "<System>", | |
"frame" : "{{437, 368}, {150, 32}}", | |
"uuid" : "7AB9E6E0-DB8A-4275-813C-5E569E27BFD3", | |
"class" : "Label", | |
"alignment" : "center", | |
"text" : "Hello, World!", | |
"name" : "hello_world_label", | |
"font_size" : 25 | |
} | |
} | |
], | |
"attributes" : { | |
"enabled" : true, | |
"background_color" : "RGBA(1.000000,1.000000,1.000000,1.000000)", | |
"tint_color" : "RGBA(0.000000,0.478000,1.000000,1.000000)", | |
"border_color" : "RGBA(0.000000,0.000000,0.000000,1.000000)", | |
"flex" : "" | |
} | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment