Created
November 4, 2015 11:56
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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