Hello,
I'm trying to use SIP to wrap a Qt widget provided by the PLplot
plotting library.
The Qt widget driver library is located here:
/usr/local/lib/plplot5.9.2/driversd/qt.so
The plplot library itself is located here:
/usr/local/lib/libplplotd.so
And the header file for qt.so in here:
/usr
The clipboard will empty when your program exits. Afaik this is normal
behavior with Qt and clipboard access.
I know if I use wxWindows the text in the clipboard stays even if I close my
app, however I am not sure if it's possible to do this in Qt.
And use sys.exit(app.exec_()) instead.
proje
I've tried the following code but the application never stops because of
app.exec_(), and when I close the application, the clipboard is "empty".
=
#!/usr/bin/env python
#coding=utf-8
import sys
from PyQt4 import QtGui
app = QtGui.QApplication(sys.argv)
clipboard = app.cl
Have you tried constructing a QApplication first?
On Sat, Apr 25, 2009 at 8:24 PM, projetmbc 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 imp
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
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
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
On Fri, 24 Apr 2009 12:57:49 -0500, Aron Bierbaum
wrote:
> If I change line 704 of PyQt's configure.py to be:
>
> inc_path = [sipcfg.py_inc_dir, sipcfg.sip_inc_dir]
>
> then PyQt builds without problems.
Thanks,
Phil
___
PyQt mailing listPyQt@rive
On Fri, 24 Apr 2009 16:36:08 -0500, mad city wrote:
> Running tutorial with Qt Designer. When I try and 'view code' get error:
>
> Unable to launch c:/Python26/Lib/site-packages/PyQt4/.\uic
>
> The path is messed up during the install?
>
> So, I wanted to try the command line version, but I c