[PyQt] Searching for a very small scprit using CLIPBOARD

Demetrius Cassidy dcassidy36 at mass.rr.com
Sun Apr 26 00:24:38 BST 2009


from PyQt4.QtGui import QApplication

clipboard = QApplication.clipboard()
clipboard.setText('mytext')

see http://doc.trolltech.com/4.5/qapplication.html


projetmbc wrote:
> 
> Hello,
> here is an example for using the clipboard of Tkinter :
> ====================
> from Tkinter import *
> root = Tk()
> root.clipboard_clear()
> root.clipboard_append('A text in the clipboard...')
> root.withdraw()
> ====================
> 
> I would like to do the same with PyQt. Is it possible ?
> 
> Christophe.
> 
> PS : if someone knows a Python script which is an universal ClipBoard 
> (ie which works on Unix and Windows), it would be better. The purpose is 
> just to send text.
> 
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
> 
> 

-- 
View this message in context: http://www.nabble.com/Searching-for-a-very-small-scprit-using-CLIPBOARD-tp23236437p23237601.html
Sent from the PyQt mailing list archive at Nabble.com.



More information about the PyQt mailing list