[PyQt] Strange behaviour QStringList

2009-09-16 Thread simozack
Problably the problem is between the desk and the chair, but I have this case: for task in TASKS: ... print type(task) ... task_list = QStringList(task) ... type 'list' Traceback (most recent call last): File stdin, line 3, in module TypeError: argument 1 of

Re: [PyQt] Strange behaviour QStringList

2009-09-16 Thread Giovanni Bajo
On Wed, 16 Sep 2009 11:47:43 +0200, simozack simoz...@yahoo.it wrote: Problably the problem is between the desk and the chair, but I have this case: for task in TASKS: ... print type(task) ... task_list = QStringList(task) ... type 'list' Traceback (most recent

Re: [PyQt] Strange behaviour QStringList

2009-09-16 Thread simozack
2009/9/16 Giovanni Bajo ra...@develer.com: I can't see why you're surprised then... QStringList's constructor accepts a list of strings, not a list of lists. I know that, but I'm perfoming a for loop on the list of lists... :) By the way, if I pass a list of QString it has no problem. For

Re: [PyQt] segfaults in sip getattr

2009-09-16 Thread Phil Thompson
On Tue, 15 Sep 2009 18:18:00 +0200, Erik Janssens tw55...@gmail.com wrote: Hi, I'm having segfaults in the sip getattr function. Apparently the code somewhere tries to resolve the '__dtor__' attribute. This appears to happen when a bunch of widgets get destructed. Nowhere in the code

Re: [PyQt] Segfault in toPyObject with QVariant and QObject (4.5.4)

2009-09-16 Thread Phil Thompson
On Tue, 15 Sep 2009 17:57:44 +0200, Florian Reinhard florian.reinh...@googlemail.com wrote: This testcase causes a segfault in 4.5.4 works in 4.4.4 from PyQt4.QtCore import QVariant, QObject class Test (QObject): def __init__ (self,parent=None): super(Test,self).__init__

Re: [PyQt] PyQt on OSX Snow Leopard notes

2009-09-16 Thread Phil Thompson
On Tue, 15 Sep 2009 17:11:51 -0500, William Kyngesburye wokl...@kyngchaos.com wrote: I'm working on building off sip/pyqt now. In sipconfig.py, I find that the arch option for the makefiles is hardwired to default to ppc i386, and the universal sdk to empty. Shouldn't these match how sip

Re: re[PyQt] sizable MDI in qteditor

2009-09-16 Thread Giorgio Luciano
Everything WORKED 100% !! Thanks Giorgio Luciano wrote: Thank you so much david, I will try to do it :) I hope it works and in that case you saved my day Giorgio -- View this message in context: http://www.nabble.com/resizable-MDI-in-qteditor-tp25417204p25474229.html Sent from the

[PyQt] PyQt-x11-gpl-4.5.4, Install fails on Ubuntu 9.0.4

2009-09-16 Thread Rick Hightower
PyQt-x11-gpl-4.5.4, Install fails on Ubuntu 9.0.4. I am getting compile errors in qpycore_chimera.cpp. PyQt-x11-gpl-4.5.4$ make make[1]: Entering directory `/home/csmadmin/tools/PyQt-x11-gpl-4.5.4/qpy' make[2]: Entering directory `/home/csmadmin/tools/PyQt-x11-gpl-4.5.4/qpy/QtCore' g++ -c -pipe

Re: [PyQt] PyQt-x11-gpl-4.5.4, Install fails on Ubuntu 9.0.4

2009-09-16 Thread Phil Thompson
On Wed, 16 Sep 2009 11:41:41 -0700, Rick Hightower richardhighto...@gmail.com wrote: PyQt-x11-gpl-4.5.4, Install fails on Ubuntu 9.0.4. I am getting compile errors in qpycore_chimera.cpp. PyQt-x11-gpl-4.5.4$ make make[1]: Entering directory `/home/csmadmin/tools/PyQt-x11-gpl-4.5.4/qpy'

[PyQt] Problem with boundingRect in PyQt snapshot

2009-09-16 Thread Jeremy Sanders
Hi - for some reason the following code does not produce the correct answer after updating PyQt. On Ubuntu with the PyQt 4.4.4 package the following returns 18.0 from PyQt4.QtGui import * from PyQt4.QtCore import * import sys app = QApplication(sys.argv) pix = QPixmap(128, 128) p =

Re: [PyQt] Problem with boundingRect in PyQt snapshot

2009-09-16 Thread Phil Thompson
On Wed, 16 Sep 2009 20:04:48 +0100, Jeremy Sanders jer...@jeremysanders.net wrote: Hi - for some reason the following code does not produce the correct answer after updating PyQt. On Ubuntu with the PyQt 4.4.4 package the following returns 18.0 from PyQt4.QtGui import * from

[PyQt] casting issues

2009-09-16 Thread Diez B. Roggisch
Hi, when wrapping a C++-library with SIP ( 4.9-snapshot-20090821) I run into a couple of issues. First of all, the library I wrap has a hierarchy of classes (all descending from ISceneNode) which I wrapped. Now through an instance of a so-called ISceneManager, I can access instances of

Re: [PyQt] casting issues

2009-09-16 Thread Matt Newell
On Wednesday 16 September 2009 16:28:52 Diez B. Roggisch wrote: Hi, when wrapping a C++-library with SIP ( 4.9-snapshot-20090821) I run into a couple of issues. First of all, the library I wrap has a hierarchy of classes (all descending from ISceneNode) which I wrapped. Now through an

[PyQt] form multipart file upload

2009-09-16 Thread IT
I'm trying to upload a binary file, eg pdf, xls to the server. Uploading .txt works ok but am somewhat confused as to how to deal with binary files, ie encoding to string. Below is the snippet of code I've got at the moment attemping to load an xls TIA Pete def upload_file(self, params,