Skip to content

Instantly share code, notes, and snippets.

@Mr-Coxall
Last active July 1, 2018 02:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mr-Coxall/ccd1ab88db22c7aa30e3aa2cba861b39 to your computer and use it in GitHub Desktop.
Save Mr-Coxall/ccd1ab88db22c7aa30e3aa2cba861b39 to your computer and use it in GitHub Desktop.
hello_world_gui.py
# 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')
[
{
"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