Skip to content

Instantly share code, notes, and snippets.

@i-give-up
Created November 4, 2015 11:56
Show Gist options
  • Save i-give-up/29a82c03f734193a9074 to your computer and use it in GitHub Desktop.
Save i-give-up/29a82c03f734193a9074 to your computer and use it in GitHub Desktop.
A simple script to test if `clipboard_append` from `tkinter` module is working properly
import sys
try:
from tkinter import Tk
except ImportError:
from Tkinter import Tk
r = Tk()
r.withdraw()
r.clipboard_clear()
r.clipboard_append(sys.version)
r.destroy()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment