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@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. _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt