Skip to content Skip to sidebar Skip to footer

Clipboard Is Not Set After Application Exits?

With this example from How do I copy a string to the clipboard on Windows using Python? : from tkinter import Tk r = Tk() r.withdraw() r.clipboard_clear() r.clipboard_append('i can

Solution 1:

No. The "clipboard" on X is not a discrete thing, but rather a notification that an application contains the piece of data that is seen as being "on" the clipboard. Other applications request this piece of data from that application, and the data is returned. This cannot work if the application that is supposed to respond with the data is no longer running.


Post a Comment for "Clipboard Is Not Set After Application Exits?"