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 taleinat
Recipients epaine, eryksun, taleinat, terry.reedy
Date 2020-05-19.06:44:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1589870679.04.0.343088228591.issue40452@roundup.psfhosted.org>
In-reply-to
Content
Looking into this further, this seems to be an issue in tkinter rather than with tcl/tk. Running `wish a.tcl` with the following simple script does leave its text in the clipboard:

pack [text .t]
.t insert 1.0 "Test text"
clipboard clear
clipboard append -- [.t get 1.0 end]
exit

On the other hand, the following equivalent Python script leaves the clipboard empty:

import tkinter
text = tkinter.Text()
text.pack()
text.clipboard_clear()
text.clipboard_append("Testing again")
History
Date User Action Args
2020-05-19 06:44:39taleinatsetrecipients: + taleinat, terry.reedy, eryksun, epaine
2020-05-19 06:44:39taleinatsetmessageid: <1589870679.04.0.343088228591.issue40452@roundup.psfhosted.org>
2020-05-19 06:44:39taleinatlinkissue40452 messages
2020-05-19 06:44:38taleinatcreate