mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Register Tcl_Finalize as a Python exit handler.
This commit is contained in:
parent
40769dd073
commit
07e9fbf6b9
1 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue