[Tutor] How do I kill this program?

Patrick K. O'Brien pobrien@orbtech.com
Thu, 27 Sep 2001 20:16:05 -0500


Works fine from the PyCrust shell
(http://sourceforge.net/projects/pycrust/):

Welcome To PyCrust 0.6.1 - The Flakiest Python Shell
Python 2.1.1 (#20, Jul 20 2001, 01:19:29) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
Startup script executed: C:\Code\.pythonrc.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()
>>> dir(widget)
['_name', '_w', 'children', 'master', 'tk', 'widgetName']
>>> widget.__doc__
'Button widget.'
>>>

---
Patrick K. O'Brien
Orbtech (http://www.orbtech.com)
"I am, therefore I think."

-----Original Message-----
From: tutor-admin@python.org [mailto:tutor-admin@python.org]On Behalf Of
DavidCraig@pia.ca.gov
Sent: Thursday, September 27, 2001 6:24 PM
To: tutor@python.org
Subject: [Tutor] How do I kill this program?

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