This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author epaine
Recipients epaine, eryksun, taleinat, terry.reedy
Date 2020-05-19.19:49:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1589917783.47.0.714254461808.issue40452@roundup.psfhosted.org>
In-reply-to
Content
I'm (sadly) not particularly familiar with C, though I have tried to trace the calls of TkClipCleanup. As @taleinat mentioned, it is called by the TkCloseDisplay, though, in turn, I believe this method is called by the DeleteWindowsExitProc method. The name "DeleteWindowsExitProc" is passed, in the Initialize method, to the TkCreateThreadExitHandler method (I assume method references work in a similar-enough way to Python?) along with the tsdPtr object.

I stopped tracing it at this point, and instead worked from the Python end. The Tkapp_New method calls the Tcl_CreateInterp method and I have three questions about this (each only applicable depending on the answer to the previous one):
1. Is the Tkapp_New method the correct one to be looking at for tcl/tk initialisation (I can't find where _tkinter.create is implemented)?
2. Is there a reason why the call is to tcl rather than tk?
3. Would changing this to tk cause the fix in tk to be applied?
History
Date User Action Args
2020-05-19 19:49:43epainesetrecipients: + epaine, terry.reedy, taleinat, eryksun
2020-05-19 19:49:43epainesetmessageid: <1589917783.47.0.714254461808.issue40452@roundup.psfhosted.org>
2020-05-19 19:49:43epainelinkissue40452 messages
2020-05-19 19:49:43epainecreate