Message393742
Okay, so it appears that a generic solution for tkinter is non-trivial, as it is not clear when to call Tcl_Finalize() or Tcl_FinalizeThread().
However, giving tkinter apps the ability to call those when appropriate is possible. Exposing a thin wrapper around Tcl_Finalize in _tkinter, and making IDLE call that when exiting, resolves the clipboard preservation issue.
For some reason, calling Tcl_Finalize causes a memory segmentation issue for me on Ubuntu 20.04. However, calling Tcl_FinalizeThread also resolves the clipboard issue without causing problems. On Windows 10, calling either function works. |
|
Date |
User |
Action |
Args |
2021-05-16 12:57:06 | taleinat | set | recipients:
+ taleinat, terry.reedy, eryksun, epaine |
2021-05-16 12:57:06 | taleinat | set | messageid: <1621169826.02.0.801771045368.issue40452@roundup.psfhosted.org> |
2021-05-16 12:57:06 | taleinat | link | issue40452 messages |
2021-05-16 12:57:05 | taleinat | create | |
|