Skip to content

Instantly share code, notes, and snippets.

View tjferry14's full-sized avatar

TJ Ferry tjferry14

View GitHub Profile
@tjferry14
tjferry14 / nav-view-example.py
Last active April 2, 2017 00:19
Nav view example
# no .pyui file is needed, the script sets everything up automatically
import ui
def button_tapped(sender):
v = ui.View()
v.background_color = 'green'
v.name = 'Pushed View'
sender.navigation_view.push_view(v)
root_view = ui.View()
@tjferry14
tjferry14 / h2048.py
Last active August 29, 2015 14:04 — forked from henryiii/h2048.py
# -*- coding: utf-8 -*-
"""
Created on Sat Jul 12 09:33:29 2014
@author: henryiii
Added improvents by JonB (swipes), techteej (design), LawAbidingCactus (size)
"""
import console, random