Re: [PyQt] RuntimeError: underlying C/C++ object has been deleted

2009-04-26 Thread Alexandr N Zamaraev
Alexandr N Zamaraev wrote: Os Windows Vista Home Ru + sp1 g++ (GCC) 3.4.5 (mingw-vista special r3) Qt 4.5 (self build) sip-4.7.9 (self build) PyQt-win-gpl-4.4.4.zip (self build) I reproduce this with sip-4.8-snapshot-20090424 (self build) PyQt-win-gpl-4.5-snapshot-20090328 (self build) Call Gar

Re: re[PyQt] source name problem in ui_*

2009-04-26 Thread Demetrius Cassidy
You need to tell it what you want to name your python resource file as. So something like "pyrcc4 -py2 -o resources_rc.py" will create the correct file that is imported in the ui file. Now if anyone knows _how_ to change the path to the resource file in your ui, so pyuic does "from something impo

Re: [PyQt] Searching for a very small scprit using CLIPBOARD

2009-04-26 Thread Aron Bierbaum
We ran into a similar situation where we wanted to ensure that a QPixmap that is copied into the clipboard stays after the application exits. Although as far as I know this should happen automatically when your Qt application exists, we had to do this use the following code manually before exiting

[PyQt] resource name problem in ui_*

2009-04-26 Thread Robert Norman
I'm new to PyQt and have been impressed with the ease of use and power of the system. One quirk that I can't seem to get a handle on is that when I run the tools to make my ui_* file from a designer file, the included resource is improperly named. So if there is a "resource.qrc" file then the ui_*

[PyQt] pyrcc4 regression in snapshot-0425?

2009-04-26 Thread Grissiom
Hi list, When I want to launch qtdemo with newly generated qtdemo_rc.py, I got: $ ./qtdemo.py Traceback (most recent call last): File "./qtdemo.py", line 47, in import qtdemo_rc File "/home/grissiom/pyQtdemo/work/qtdemo/qtdemo_rc.py", line 3831 " ^ SyntaxError: invalid syntax in

Re: [PyQt] Searching for a very small scprit using CLIPBOARD

2009-04-26 Thread projetmbc
sys.exit(app.exec_()) doesn't work. If the clipboard is empty when the program exits, I will do without PyQt so as to have a "universal" clipboard. Thanks a lot because now I knows how to use clipboard in a "real" program.. Christophe. Demetrius Cassidy a écrit : The clipboard will empty whe