Re: Closing dialog window in Tkinter
From: Harlin Seritt (harlinseritt_at_yahoo.com)
Date: 03/02/05
- Next message: actuary77: "Help- Simple recursive function to build a list"
- Previous message: Robert Kern: "Re: Faster way to do this..."
- In reply to: Svennglenn: "Closing dialog window in Tkinter"
- Next in thread: Svennglenn: "Re: Closing dialog window in Tkinter"
- Reply: Svennglenn: "Re: Closing dialog window in Tkinter"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: actuary77: "Help- Simple recursive function to build a list"
- Previous message: Robert Kern: "Re: Faster way to do this..."
- In reply to: Svennglenn: "Closing dialog window in Tkinter"
- Next in thread: Svennglenn: "Re: Closing dialog window in Tkinter"
- Reply: Svennglenn: "Re: Closing dialog window in Tkinter"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]