]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Add calls to self.protocol("WM_DELETE_WINDOW", self.destroy) to the Tk
authorGuido van Rossum <guido@python.org>
Fri, 20 Aug 1999 18:26:06 +0000 (18:26 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 20 Aug 1999 18:26:06 +0000 (18:26 +0000)
commite61e98d2ae345518f68d199f04f982c331beb210
tree92a09f4550c4e70a9a22636d6c34cdc7ef8958bf
parent5c9eb21729a4fd0334785c6290c8220e484e508c
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.)
Lib/lib-tk/Tkinter.py