Register Tcl_Finalize as a Python exit handler.

This commit is contained in:
Guido van Rossum 1998-02-06 22:35:46 +00:00
parent 40769dd073
commit 07e9fbf6b9
1 changed files with 4 additions and 1 deletions

View File

@ -1543,7 +1543,10 @@ init_tkinter()
}
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.