Problem stopping Tkinter apps

David Allen mda at idatar.com
Sat Mar 31 16:56:32 EST 2001


In article <dktbct8ul4jmbnlh4h6acplkauofdh5tup at 4ax.com>, "David Fuess"
<fuess at att.net> wrote:

> I am building Tkinter applications on W2K using ActivePython2.0 and Tcl
> 8.3.2 with Pmw wigets. The problem is that if I try to exit the program
> using a button handler I get an error. I have tried both
> 'sys.exit(0)' and 'root.quit()' in the button handler. In both cases I
> often get the error:
> 
> pythonw.exe - Application Error, The instruction at "0x01744727" referenced
> memory at "0x00000000". The memory could not be "read".
> 
> This never happens if I close the application using the X in the window
> decorations.
> 
> Dave

Much easier is simply this:

toplevelwidget.destroy()

-- 
David Allen
http://opop.nols.com/
----------------------------------------
It's that time of year again, Defcon has descended upon us. Time to venture
to SYN City to see the lights, meet strange new people, and create new
blurs we later dub memories.
	-- Attrition.org



More information about the Python-list mailing list