Re: Closing dialog window in Tkinter

From: Harlin Seritt (harlinseritt_at_yahoo.com)
Date: 03/02/05


Date: 1 Mar 2005 18:01:15 -0800

You can add this:

button = Button(top, text="Close Me", command=top.destroy)
button.pack()

That will kill the Toplevel window.

Cheers,

Harlin Seritt