"Clara" wrote: > I meant to write an application where there is a button in a window and > when you click on the button, it will open a new window, but I want the > first window to close, replaced by the second window. > I open a login window and start the mainloop, when the user click on > the login button, the __call__ function of VerifyProcessor is executed > and it will call the new window which is the file manager window > The thing is,.. I don't know how to exit the first mainloop and then > display the second window...I even tried calling the mainloop again but > a weird thing happens. I really need help because otherwise I'm stuck > here and I can't complete my assignment. The following is my code:
you don't really have to start a new mainloop to create a new toplevel window. just call "withdraw" on first window, and create the second (as a Toplevel), and Tkinter will take care of the rest. </F> -- http://mail.python.org/mailman/listinfo/python-list