commit | 07e9fbf6b96f6bfab45c3ce860f0c1e27671b59b | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Feb 06 22:35:46 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Feb 06 22:35:46 1998 +0000 |
tree | ef6d39c27a7e190727736d30f1af7bc66c67ddc4 | |
parent | 40769dd073bdc9c3ceb8082bd080158772e715ec [diff] [blame] |
Register Tcl_Finalize as a Python exit handler.
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 5958716..8d654a1 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c
@@ -1543,7 +1543,10 @@ } if (PyErr_Occurred()) - Py_FatalError("can't initialize module _tkinter"); + return; + + Py_AtExit(Tcl_Finalize); + #ifdef macintosh /* ** Part of this code is stolen from MacintoshInit in tkMacAppInit.