Skip to content

Instantly share code, notes, and snippets.

Avatar

TJ Ferry tjferry14

View GitHub Profile
View nav-view-example.py
# 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()
View 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