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
# coding: utf-8 | |
import ui | |
v = ui.load_view() | |
v.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
#coding: utf-8 | |
# Created By: jsbain -> https://gist.github.com/jsbain | |
# Created For: Pythonista | |
# Created On: Aug-2016 | |
# Altered on: Aug 2016 | |
# Altered by: Mr. Coxall | |
# What Changed: added comments, changed name of file, changed the output the user sees |
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
# for use with https://github.com/omz/PythonistaAppTemplate | |
from scene import * | |
import ui | |
class FirstScene (Scene): | |
def setup(self): | |
self.background_color = 'midnightblue' | |
self.ship = SpriteNode('spc:PlayerShip1Orange') | |
self.ship.position = self.size / 2 |
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
print('Hello, World!') |
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
print('Mr. Coxall') | |
print('Ottawa') | |
print('Ontario') |
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
# 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') |
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 3 buttons | |
import ui | |
def english_touch_up_inside(sender): | |
# displays the English version | |
view['hello_world_label'].text = ('Hello, World!') |
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 does basic math | |
import ui | |
def equation1_touch_up_inside(sender): | |
# displays the answer to equation 1 | |
OlderNewer