Last active
July 1, 2018 02:42
-
-
Save Mr-Coxall/ad789c38d84e0e59a25ae202c81a3315 to your computer and use it in GitHub Desktop.
mascot.pdf
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 displays the school name and their mascot | |
import ui | |
def mother_teresa_touch_up_inside(sender): | |
# displays the school and mascot for MT | |
view['school_name_label'].text = 'Mother Teresa HS' | |
view['mascot_label'].text = 'Titans' | |
def st_joe_touch_up_inside(sender): | |
# displays the school and mascot for St. Joe | |
view['school_name_label'].text = 'St. Joe HS' | |
view['mascot_label'].text = 'Jaguars' | |
def st_mark_touch_up_inside(sender): | |
# displays the school and mascot for St. Mark | |
view['school_name_label'].text = 'St. Mark HS' | |
view['mascot_label'].text = 'Lions' | |
view = ui.load_view() | |
view.present('full_screen') |
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" : false, | |
"frame" : "{{32, 32}, {150, 32}}", | |
"class" : "Label", | |
"nodes" : [ | |
], | |
"attributes" : { | |
"font_name" : "<System>", | |
"frame" : "{{437, 368}, {150, 32}}", | |
"uuid" : "FFE1197B-3FB7-4485-9C8C-122FBD10A588", | |
"class" : "Label", | |
"alignment" : "left", | |
"text" : "School", | |
"name" : "school_label", | |
"font_size" : 18 | |
} | |
}, | |
{ | |
"selected" : false, | |
"frame" : "{{102, 97}, {200, 32}}", | |
"class" : "Button", | |
"nodes" : [ | |
], | |
"attributes" : { | |
"action" : "mother_teresa_touch_up_inside", | |
"frame" : "{{472, 368}, {80, 32}}", | |
"title" : "Mother Teresa HS", | |
"uuid" : "57CCD201-3770-44A4-AA0B-8CCF080677EB", | |
"class" : "Button", | |
"name" : "mother_teresa_button", | |
"font_size" : 15 | |
} | |
}, | |
{ | |
"selected" : false, | |
"frame" : "{{102, 163}, {200, 32}}", | |
"class" : "Button", | |
"nodes" : [ | |
], | |
"attributes" : { | |
"action" : "st_joe_touch_up_inside", | |
"frame" : "{{472, 368}, {80, 32}}", | |
"title" : "St. Joe", | |
"uuid" : "4202FAB7-2F56-43E3-B2CE-32ECF06AD905", | |
"class" : "Button", | |
"name" : "st_joe_button", | |
"font_size" : 15 | |
} | |
}, | |
{ | |
"selected" : false, | |
"frame" : "{{102, 225}, {200, 32}}", | |
"class" : "Button", | |
"nodes" : [ | |
], | |
"attributes" : { | |
"action" : "st_mark_touch_up_inside", | |
"frame" : "{{472, 368}, {80, 32}}", | |
"title" : "St. Mark", | |
"uuid" : "0438E36C-A78D-4627-B3EC-C61A284B5A2B", | |
"class" : "Button", | |
"name" : "st_mark_button", | |
"font_size" : 15 | |
} | |
}, | |
{ | |
"selected" : true, | |
"frame" : "{{398, 129}, {200, 32}}", | |
"class" : "Label", | |
"nodes" : [ | |
], | |
"attributes" : { | |
"font_name" : "<System>", | |
"frame" : "{{437, 368}, {150, 32}}", | |
"uuid" : "E53EBB40-0EED-444A-BCAE-FB9F87CDA221", | |
"class" : "Label", | |
"alignment" : "center", | |
"text" : "Mother Teresa HS", | |
"name" : "school_name_label", | |
"font_size" : 18 | |
} | |
}, | |
{ | |
"selected" : false, | |
"frame" : "{{398, 209}, {200, 32}}", | |
"class" : "Label", | |
"nodes" : [ | |
], | |
"attributes" : { | |
"font_name" : "<System>", | |
"frame" : "{{437, 368}, {150, 32}}", | |
"uuid" : "32325C9E-540E-4AE3-A9D4-13306BC66530", | |
"class" : "Label", | |
"alignment" : "center", | |
"text" : "Titans", | |
"name" : "mascot_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