Closing dialog window in Tkinter

Harlin Seritt harlinseritt at yahoo.com
Wed Mar 2 21:40:44 EST 2005


Do you need this toplevel window to not be iconified--where it shows up
as a separate window? You can also do this:

def new_window(self, master):
   t = Toplevel()
   t.transient(master)

   etc...

Svennglen, I put this in here because most likely you're next question
may be, how in the world do I make a modal window? I believe it was my
next question after I finally figured out how to kill a child window
without wiping out the entire app ;-). Check out Frederik Lundh's
tutorial:

http://www.pythonware.com/library/tkinter/introduction/

You can now buy a PDF form of John Grayson's Python and Tkinter
Programming from Manning Publications. I won't provide the link so that
no one will think I'm spamming (:-). Grayson's book is essential
reading if you are to write any serious apps with Tkinter.

Good luck,

Harlin




More information about the Python-list mailing list