Skip to content

Instantly share code, notes, and snippets.

@jglee72
jglee72 / textField.py
Created September 6, 2018 22:52
textField.py
# coding: utf-8
import ui
class accountField (ui.View):
'''Each account display of current balance. associated button for adding transactions. editable field for balance update
'''
def __init__ (self,frame_loc=(0,0)):
self.acc_field= ui.TextView(frame=frame_loc+(150,64),bg_color=(1.0, .0, .0,0.5),text_color=('white'),font=('AmericanTypewriter-Bold',17), text=('text'),border_color=('#412190'),border_width=3,border_radius=20,alignment=ui.ALIGN_LEFT,alpha=0.5,selected=(False),editable=False)
@jglee72
jglee72 / moneist.py
Created September 6, 2018 22:52
moneist.py
# coding: utf-8
import datetime as dt
from calView3 import *
from textField import *
import console, time
import sys
def main():
'''Moneist: Money Atheist: monitor your daily balance based on instantaneous and sliding days. Balances are 'real', 'theoretical extended', and 'real extended'
@jglee72
jglee72 / calView3.py
Created September 6, 2018 22:51
calView3.py
# coding: utf-8
# https://gist.github.com/Phuket2/1430ac7f8eba11fdaff5
# https://forum.omz-software.com/topic/2953/calendar-view-class/2
import calendar
import datetime as dt
import ui
@jglee72
jglee72 / WackAMole.py
Created March 25, 2017 15:50
WackAMole.py
import random
import ui
from time import sleep
import console
import sys
#turn button to "on" state
def turn_on(sender):
sender.title = 'on'
@jglee72
jglee72 / UltCalcR2.py
Created March 21, 2017 13:55
UltCalcR2.py
# coding: utf-8
import math
import dialogs
import time
#from game_menu import MenuScene
import sound
# print fibanoci sequence up to n
##==========MODULES=======##
def fib(n):
@jglee72
jglee72 / DropboxSync.py
Created March 21, 2017 13:55
DropboxSync.py
import os
import sys
import pickle
import console
import glob
import string
# I moved 'dropboxlogin' into a sub folder so it doesn't clutter my main folder
#sys.path += [os.path.join(os.path.dirname(os.path.abspath(__file__)), 'lib')]
import dropboxlogin # this code can be found here https://gist.github.com/4034526
@jglee72
jglee72 / drum_R01.py
Created March 21, 2017 13:51
drum_R01.py
# coding: utf-8
#TODO: Adjust size to screen size (iPhone)
#DONE: Adjusted to rect(x * 47, y * 42, 46, 41)
# - decr y * val to accomodate new buttons
#DONE: Clear : added 16th row: column 1 clears data
#DOME: Random: row 16 column 2 uses randint() to generate random data
#TODO: have a random for just column 16 pushed (exc clear button)
#TODO: play/pause buttons
@jglee72
jglee72 / ultimateCalc.py
Created May 19, 2016 05:45
ultimateCalc.py
import math
import dialogs
import time
from game_menu import MenuScene
import sound
# print fibanoci sequence up to n
def fib(n):
a,b=0,1
while a < n:
print a
@jglee72
jglee72 / ultimateCalc.py
Created May 13, 2016 15:55
ultimateCalc.py
import math
import dialogs
import time
from game_menu import MenuScene
import sound
# print fibanoci sequence up to n
def fib(n):
a,b=0,1
while a < n:
print a