#simple count down reminder. #By: Wilson #Email:[ wilsony175@gmail.com ] from math import * from random import * from kandinsky import * from time import * def REMIND(): m=monotonic() bg="black" print("\n****************************\n") print("Use [Alpha] key to toggle") print("between letters & numbers.\n") print("****************************\n") reminder=input("Reminder? \n\n") seconds=eval(input("\nIn how many [Seconds]\nfrom now? \n")) for i in range(0,322,16): for j in range(0,222,18): sleep(0.0025) num=randint(0,1) fill_rect(i,j,322,18,"black") draw_string(str(num),i,j,(0,randint(0,255),0),bg) fill_rect(0,85,322,50,(200,255,255)) sleep(0.01) fill_rect(0,83,322,2,"blue") fill_rect(0,85,322,2,"cyan") fill_rect(0,133,322,2,"cyan") fill_rect(0,135,322,2,"blue") fill_rect(0,34,322,1,"white") draw_string(" Monotonic Clock ",0,36,"cyan","black") fill_rect(0,54,322,1,"white") start=seconds+monotonic() minutes=round(-(m-start)/60) while minutes+(-(m-start))>0: # -(m-start)>0: m=monotonic() draw_string(str(m),40,100) draw_string("MIN: "+str(round(-(m-start)/60))+" ",10,160) draw_string("SEC "+str(round(-(m-start)))+" ",10,200) fill_rect(0,0,322,222,(150,255,184)) fill_rect(0,0,322,2,"black") draw_string(" Reminder: ",0,4,"black","cyan") fill_rect(0,23,322,2,"black") draw_string(str(reminder),20,60)