Why does tkinter app crash on quit?
John Powers
jpowers at acm.org
Mon Jul 10 11:44:28 EDT 2000
I have a python program which crashes every once in a while when I press
the "Quit" button. I'm running tkinter 1.127 and tcl/tk 8.0.5 under
Windows 95 and Python 1.5.2. Most of the time, it quits just fine.
But sometimes, it crashes: "Python - This program has performed an
illegal operation and will be shut down. PYTHON caused an invalid page
fault in module SYNTPFCS.DLL at 0157:630067db.
from Tkinter import *
class App(Tk):
def __init__(self):
Tk.__init__(self)
filename = "filename"
Label(self, text=filename).pack()
Button(self, text="Quit", command=self.quit).pack()
App().mainloop()
Anybody had experience with this?
Thanks, jpp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20000710/3168ed39/attachment.html>
More information about the Python-list
mailing list