-
def menu(y):
main.grid_remove ()
root.update()
if y ==1:
menu1()
etc/...
def menu1():
X=Canvas(root, width=200, height=200, bg="blue")
X.grid(row=0,column=0)
but2=Button(X,text="back",command=mainmenu)
but2.grid()
def menu2():...
def menu3():...
root=
Quoting Phillip Hart <[EMAIL PROTECTED]>:
> So far, I've tried using a single Tk window, creating a series of canvas
> widgets, each containing a series of buttons. When pressed, each button
> calls a function which uses .grid_remove() on the current canvas and
> creates a new canvas with new butt
Greetings again helpful friends,
I've written a series of Python/Tkinter programs, each of which will represent
a different menu/screen in a simple Tkinter game I'm making. Now, my trouble is
linking them together through layered menus with buttons.
So far, I've tried using a single Tk window, c