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/d936555e824f31f5204311ed393ad284 to your computer and use it in GitHub Desktop.
Save Mr-Coxall/d936555e824f31f5204311ed393ad284 to your computer and use it in GitHub Desktop.
address_gui.py
# Created by: Mr. Coxall
# Created on: Aug 2018
# Created for: ICS3U
# This program is the Address program, but with a GUI
import ui
v = ui.load_view()
v.present('sheet')
[
{
"selected" : false,
"frame" : "{{0, 0}, {1024, 768}}",
"class" : "View",
"nodes" : [
{
"selected" : false,
"frame" : "{{430, 368}, {150, 32}}",
"class" : "Label",
"nodes" : [
],
"attributes" : {
"font_name" : "<System>",
"frame" : "{{437, 368}, {150, 32}}",
"uuid" : "4F887C8E-B915-45EE-A8F5-C47AC7251209",
"class" : "Label",
"alignment" : "center",
"text" : "Mr. Coxall",
"name" : "name_label",
"font_size" : 18
}
},
{
"selected" : false,
"frame" : "{{430, 408}, {150, 32}}",
"class" : "Label",
"nodes" : [
],
"attributes" : {
"font_name" : "<System>",
"frame" : "{{437, 368}, {150, 32}}",
"uuid" : "D6FEFD83-BBB0-4017-A523-35F69FC69139",
"class" : "Label",
"alignment" : "center",
"text" : "Ottawa",
"name" : "city_label",
"font_size" : 18
}
},
{
"selected" : false,
"frame" : "{{430, 448}, {150, 32}}",
"class" : "Label",
"nodes" : [
],
"attributes" : {
"font_name" : "<System>",
"frame" : "{{437, 368}, {150, 32}}",
"uuid" : "6944C318-31C7-4137-841A-5347C6638413",
"class" : "Label",
"alignment" : "center",
"text" : "Ontario",
"name" : "province_label",
"font_size" : 18
}
}
],
"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