timbertson / pyperclip

improved fork of coffeeghost's `pyperclip` module
http://coffeeghost.net/2010/10/09/pyperclip-a-cross-platform-clipboard-module-for-python/comment-page-1/
9 stars 3 forks source link

PyQt import error #1

Closed joedborg closed 11 years ago

joedborg commented 11 years ago
import PyQt4.QtCore
import PyQt4.QtGui
app = QApplication([])
cb = PyQt4.QtGui.QApplication.clipboard()

...needs to be...

import PyQt4.QtCore
import PyQt4.QtGui
app = PyQt4.QtGui.QApplication([])
cb = PyQt4.QtGui.QApplication.clipboard()
timbertson commented 11 years ago

Thanks. It seems app isn't even used (not my code, I inherited it), so I've removed that line. Sorry it took so long for such a trivial change, I was overseas.

Can you confirm whether it works under Qt now? I've never had a system with it installed...

joedborg commented 11 years ago

Yep, it's fine now.