[Python-checkins] CVS: python/dist/src/Lib/lib-tk Tkinter.py
Guido van Rossum
guido@cnri.reston.va.us
Fri, 20 Aug 1999 14:26:07 -0400 (EDT)
Update of /projects/cvsroot/python/dist/src/Lib/lib-tk
In directory eric:/projects/python/develop/guido/src/Lib/lib-tk
Modified Files:
Tkinter.py
Log Message:
Add calls to self.protocol("WM_DELETE_WINDOW", self.destroy) to the Tk
and Toplevel class constructors. This means that if the window
manager closes the window, the Python-side Tkinter data structures
will be destroyed correctly. (Most apps do this anyway, and it's
recommended practice; I see no reason why making it the default
behavior could be bad.)