Closing dialog window in Tkinter

Svennglenn Danielnord15 at yahoo.se
Tue Mar 1 15:06:08 EST 2005


Hi

I'm creating a program in Tkinter and I would need
help to create a "close button" for dialog windows.

One of my typical dialog windows look like this:

    def show_window(self):
        top = Toplevel()

        Label(top, text="Some text").pack()
        Label(top, text="Some more text").pack()


So what code do i need to insert to create a button that
can close this window? If you need to look at some more
code from the program to be sure please till me.




More information about the Python-list mailing list