Re: Closing dialog window in Tkinter

2005-03-02 Thread Harlin Seritt
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

Re: Closing dialog window in Tkinter

2005-03-02 Thread Svennglenn
Harlin Seritt wrote: > You can add this: > > button = Button(top, text="Close Me", command=top.destroy) > button.pack() > > That will kill the Toplevel window. > > Cheers, > > Harlin Seritt Thank you, it worked great :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Closing dialog window in Tkinter

2005-03-01 Thread Harlin Seritt
You can add this: button = Button(top, text="Close Me", command=top.destroy) button.pack() That will kill the Toplevel window. Cheers, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Closing dialog window in Tkinter

2005-03-01 Thread Svennglenn
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").pa