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 terry.reedy
Recipients epaine, eryksun, taleinat, terry.reedy
Date 2020-05-19.11:45:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1589888746.0.0.683401870738.issue40452@roundup.psfhosted.org>
In-reply-to
Content
I ran your tkinter code on Windows, without IDLE, and the clipboard was clear thereafter.  I added 'test.mainloop()' and observed the following.
1. Close immediately, clipboard is clear, as before.
2. Paste 'Testing again' into 'text' with ^V and close, and clipboard is still clear.
3. Paste elsewhere (here, Command Prompt, or IDLE), close, and 'Testing again' can be pasted anywhere.

4. When I run from an IDLE editor, paste into the editor (which in running in the IDLE process rather than the user process where the test code is running, and close, 'Testing again' remains on the clipboard.

It appears that either a. tkinter clear the clipboard unless pasted into another process, or b. tkinter (or tk) always clears the clipboard on exit and it is gone unless pulled out of the process first by pasting elsewhere.  The best option is for this to be fixed.

The example codes are not quite equivalent.  Tkinter clipboard_clear and _append call self.tk.call with the equivalent arguments *plus*, 
  self._options({'displayof':text._w}) == ('-displayof', '.!text')
However, commenting out the addition had no visible effect.
History
Date User Action Args
2020-05-19 11:45:46terry.reedysetrecipients: + terry.reedy, taleinat, eryksun, epaine
2020-05-19 11:45:46terry.reedysetmessageid: <1589888746.0.0.683401870738.issue40452@roundup.psfhosted.org>
2020-05-19 11:45:45terry.reedylinkissue40452 messages
2020-05-19 11:45:45terry.reedycreate