global choice choice = "medium" root.destroy() def commandHard(): global choice choice = "hard" root.destroy() def commandPic(): global choice choice = "pic" root.destroy() board_name = "debug" root = Tk() root.canvas = Canvas(width=WIDTH, height=HEIGHT) root.geometry("%dx%d" % (WIDTH, HEIGHT + 80)) root.title("Super Sudoku") text = Text(root,state=NORMAL) message = "Hello, and welcome to Super Sudoku! This application is intended to " +\ "allow individuals with physical impairments (e.g. MS) to enjoy playing the " +\ " wonderful game of Sudoku. Please refer to the following instructions: \n \n" +\ "1) Please select a difficulty from the options below \n" +\ "2) After the user selects a difficulty, they are displayed an example sudoku " +\ "board. They then have the following options to input data" text.insert(INSERT, message) text.pack() # root.pack() button = Button(root, text="Easy", command=commandEasy) button.pack()
sudo easy_install pip pip install pillow ~~~ # Implementation """ from Tkinter import Tk, mainloop from sys import stdout, stderr from bview import BCanvas # Try user customization from os.path import expanduser import imp try: imp.load_source('userinit', expanduser("~/.bview.py")) except IOError: pass root = Tk() root.withdraw() root.title('bview') root.canvas = BCanvas(root, stdout) stdout = stderr try: mainloop() except (KeyboardInterrupt, SystemExit): None