I\'m trying to make a basic Windows application that builds a string out of user input and then adds it to the clipboard. How do I copy a string to the clipboard using Pytho
Widgets also have method named .clipboard_get()
that returns the contents of the clipboard (unless some kind of error happens based on the type of data in the clipboard).
The clipboard_get()
method is mentioned in this bug report:
http://bugs.python.org/issue14777
Strangely, this method was not mentioned in the common (but unofficial) online TkInter documentation sources that I usually refer to.