Web Analytics Made Easy - Statcounter
Skip to content

Clipboard APIs

PySimpleGUI provides access to the clipboard functions that are provided by tkinter. These clipboard functions are primitive in comparison to the PyPI clipboard packages that you can install. There are 2 main limitations.

  1. The clipboard can only be used with text
  2. The clipboard may be cleared when you exit your program

If you stick with using text within your application or text while your application remains running, then these API calls will work well.

Clipboard Get and Set

There are 2 functions, one to set the clipboard the other to get the contents of the clipboard. You'll find details in the SDK Call Reference

Clipboard call reference