Register Tcl_Finalize as a Python exit handler.
This commit is contained in:
parent
40769dd073
commit
07e9fbf6b9
|
@ -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…
Reference in New Issue