Skip to content

Instantly share code, notes, and snippets.

@Perlence
Created December 29, 2015 20:49
Show Gist options
  • Select an option

  • Save Perlence/babe139bd2cf25e7394c to your computer and use it in GitHub Desktop.

Select an option

Save Perlence/babe139bd2cf25e7394c to your computer and use it in GitHub Desktop.
Print contents of the clipboard
from Tkinter import Tk
r = Tk()
r.withdraw()
print r.clipboard_get()
r.destroy()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment