0

Is there a way to manage clipboard in python 3.x without the use of tkinter or other downloadable libraries ? tkinter is a GUI library, it should have no business in clipboard or file management. I purposely refuse to use tkinter for anything other then GUI.

Thank you.

import os
data = "hello world"
os.system("echo '%s' | pbcopy" % data)

the above does not work for windows

  • 1
    Does this answer your question? [How do I copy a string to the clipboard on Windows using Python?](https://stackoverflow.com/questions/579687/how-do-i-copy-a-string-to-the-clipboard-on-windows-using-python) – prhmma Dec 01 '19 at 07:05
  • 1
    Not finding a 1 line of code solution without having to download libraries. Except tkinter but tkinter should not come near clipboard, its a GUI module, not a system module. System module should do it or the OS module – Tony Nameless Dec 02 '19 at 08:14

0 Answers0