Clipboard APIs
Note that this clipboard uses tkinter's clipboard. There is a known limitation that your application needs to remain running until you've pasted the contents. Managed to get around this limitation so that the clipboard stays set after you exit your application, but only have it working for Windows systems.
clipboard_get
Gets the clipboard current value.
Parameter Descriptions
Name | Type | Default | Description |
---|---|---|---|
RETURN | str | The current value of the clipboard |
clipboard_set
Sets the clipboard to a specific value. IMPORTANT NOTE - Your PySimpleGUI application needs to remain running until you've pasted your clipboard. This is a tkinter limitation. A workaround was found for Windows, but you still need to stay running for Linux systems.
Parameter Descriptions
Name | Type | Default | Description |
---|---|---|---|
new_value | (str or bytes) | value to set the clipboard to. Will be converted to a string |