I have the path to a file, will usually be an image or a video, and I would like to copy this file to the clipboard so I can paste it somewhere else, eg: another folder, websites etc.
Disappointingly, the following doesn't work
loc="C:/Path/To/File"
root.clipboard_clear()
root.clipboard_append(loc)
even though if I ctrl + C the file and print self.parent.clipboard_get()
, I get loc
How can I achieve this?