Tkinter: Why won't it work?
Phlip
phlip_cpp at yahoo.com
Wed Mar 27 01:04:17 EST 2002
A.Newby wrote:
>
>
> Hi.
>
> Below is an example exercise from "An Introduction to Tkinter" by Fredrik
> Lundh. It simply creates a box with a quit button in it. Problem is,
> everytime I click Quit, the program freezes.
Does Freddy specify he got these working on Linux?
> self.button = Button(frame, text="QUIT", fg="red",
> command=frame.quit)
I suspect you can change that to command=frame.destroy and it will go away.
The problem may have been 'quit' turned off 'mainloop', but the window
still existed.
--
Phlip
http://www.greencheese.org/HatTrick
More information about the Python-list
mailing list