def viewInit(): clearOut(root) cfg.resetAll() reset() frameI = Tkinter.Frame(root, bg="gray") frameI.pack() label = Tkinter.Label(frameI, text="DRUM TRAINER PROGRAM", font=("Cooper Bold", 16)) label.grid(row=0, column=1) button0 = Tkinter.Button(frameI, text="Record new Example", command=option0, fg="gray") button0.grid(row=1, column=1) button1 = Tkinter.Button(frameI, text="Review Existing Attempt", command=option1) button1.grid(row=3, column=1) button2 = Tkinter.Button(frameI, text="Record new Attempt", command=option2) button2.grid(row=5, column=1) button3 = Tkinter.Button(frameI, text="FUN MODE", command=FUN) button3.grid(row=7, column=1) quitButton = Tkinter.Button(frameI, text="QUIT", command=quit) quitButton.grid(row=9, column=2) creditB = Tkinter.Button(frameI, text="CREDITS", command=credits) creditB.grid(row=9, column=0) padWidgets(frameI)
def reset(): cfg.resetAll() userpath.set("") if debug: userpath.set("/Users/hilarymogul/Desktop") gtpath.set("") tempo.set(40) duration.set(0) nameFolder.set("") recVar.set(0) showVar.set(0) skipGrade.set(0) octave.set(4) readHits.octave = 4