[Windows][Maya][Python] Tkinter get/set clipboard in Maya2014/2015?

Hello!

A couple of years ago I wrote a script that put data from Maya to the windows clipboard, without having to install any additional libs, using Tkinter.
However, since some time back (I don’t know, since >Maya2012?), just running “import Tkinter” in the script editor throws errors.
What’s going on here? Tkinter.py exists in the python27.zip in the Maya bin directory. Am I doing this wrong in some way?

I would like to make use of the clipboard in my script without having to install any additional libs, just with a fresh Maya install, so if anybody has another way of doing this, please enlighten me!

Thanks a bunch for any responses

If you’re on 2014 or later, PySide can do this and is bundled with maya

http://srinikom.github.io/pyside-docs/PySide/QtGui/QClipboard.html

There’s also a pure-python dropin called Pyperclip, which I’ve been using for several years

thanks theodox!

Thanks a lot guys, will check them both out!