Tkinter/IDLE crash

Fredrik Lundh fredrik at pythonware.com
Fri Dec 10 09:10:05 EST 1999


Simon Evans <simon at george.maths.unsw.edu.au> wrote:
>         self.button = Button(frame, text="QUIT", fg="red", command=frame.quit)
>         self.button.pack(side=LEFT)
> 
>    Press the "Hello" button, and it says hello. Fine and dandy. But press
>  the "Quit" button, and *everything* quits. The window, the IDLE session,
>  everything! Goodbye python, goodbye IDLE, hello desktop.

what happens if you change frame.quit to
frame.destroy?

</F>





More information about the Python-list mailing list