[PyQt] Searching for a very small scprit using CLIPBOARD
Darren Dale
dsdale24 at gmail.com
Sun Apr 26 01:34:09 BST 2009
Have you tried constructing a QApplication first?
On Sat, Apr 25, 2009 at 8:24 PM, projetmbc <projetmbc at club-internet.fr>wrote:
> I've already try that but I have the following message :
> QWidget: Must construct a QApplication before a QPaintDevice
>
> Christophe.
>
>
> Demetrius Cassidy a écrit :
>
>> from PyQt4.QtGui import QApplication
>>
>> clipboard = QApplication.clipboard()
>> clipboard.setText('mytext')
>>
>> see http://doc.trolltech.com/4.5/qapplication.html
>>
>>
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090426/81a64330/attachment.html
More information about the PyQt
mailing list