[Tutor] How do I kill this program?

Kirby Urner urnerk@qwest.net
Thu, 27 Sep 2001 17:02:05 -0700


In many cases, IDLE is not a good place to develop
Tk programs.

However, in this case, you can have it work.

Paste the code below into a Window and or pull it
up from a file.  Do Ctrl-F5 in that window (code
window) to start the Tk program (nice 'Spam' BTW).

Now, here's the important part:  resist the temptation
to hit the windows close box (x) in the upper right.
Instead, click on the Tk icon on the left, and choose
close.  This will return you to the IDLE shell prompt,
no three-fingers necessary.

Kirby

At 04:24 PM 9/27/2001 -0700, DavidCraig@pia.ca.gov wrote:
>I am doing exercises in Lutz's Programming Python.
>
>#config-button.py
>
>from Tkinter import *
>widget=Button(text='Spam', padx=10, pady=10)
>widget.pack(padx=20, pady=20)
>widget.config(cursor='gumby')
>widget.config(bd=8, relief=RAISED)
>widget.config(bg='dark green', fg='white')
>widget.config(font=('helvetica', 20, 'underline italic'))
>mainloop()
>
>The program runs fine.  I use IDLE for my editor.  The problem is when I
>finish I get the following message:
>
>The program is still running.  Do you want to kill it?  I say yes, but the
>program will not close and I am unable to close the IDLE environment
>without doing a three fingered salute.
>
>Help!!
>
>TIA
>
>Dave
>D. H. Craig, CSM
>
>
>_______________________________________________
>Tutor maillist  -  Tutor@python.org
>http://mail.python.org/mailman/listinfo/tutor