Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread V. Armando Solé
Phil Thompson wrote: On Wed, 03 Jun 2009 22:57:32 +0200, Vicente Sole wrote: createIndex can accept a pointer or a quint32 so, in any case one would say it is a positive number. Perhaps forcing the return of internalId() to be a quint64 instead of qint64 in qabstractitemmodel.sip could d

Re: [PyQt] Static Qt/PyQt on Mac OS X

2009-06-03 Thread Giovanni Bajo
On Wed, 03 Jun 2009 20:37:56 +0100, Jeremy Sanders wrote: > Are statically linked PyQt and Qt libraries supported on Mac OS X? If so, > is > there a guide to building them? > > I'm finding it a bit of a pain to get my application packaged with py2app > as > it leaves out the plugins and I have

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread Darren Dale
On Wed, Jun 3, 2009 at 4:57 PM, Vicente Sole wrote: > Quoting Darren Dale: > > On Wed, Jun 3, 2009 at 2:40 PM, Darren Dale wrote: >> >> One last point, however: I think Armando's suggestion of passing the >> object, >> and not the object's id(), coupled with Phil's patch, is the right >> soluti

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread Vicente Sole
Quoting Phil Thompson: On Wed, 03 Jun 2009 22:57:32 +0200, Vicente Sole: So, unless I get I successful test under 32-bit with Phil\'s patch, I would just leave the things as they are. Except that this keeps coming up. Does changing the type of internalId() from qint64 to quint64 solve the p

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread Phil Thompson
On Wed, 03 Jun 2009 22:57:32 +0200, Vicente Sole wrote: > Quoting Darren Dale: > >> On Wed, Jun 3, 2009 at 2:40 PM, Darren Dale wrote: >> >> One last point, however: I think Armando's suggestion of passing the >> object, >> and not the object's id(), coupled with Phil's patch, is the right >> so

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread Vicente Sole
Quoting Darren Dale: On Wed, Jun 3, 2009 at 2:40 PM, Darren Dale wrote: One last point, however: I think Armando's suggestion of passing the object, and not the object's id(), coupled with Phil's patch, is the right solution: At my side, passing the object was already fine on 64-bit without

Re: [PyQt] Static Qt/PyQt on Mac OS X

2009-06-03 Thread nenduvel
Jeremy, I'm not sure if I understand your question. But I'm using a mac with osx and pyqt is installed with me. I used darwinports and this installed pyqt with all needed dependencies. you can compare darwinports with the port system on bsd-variants and the package system at linux. hope it helps

[PyQt] Static Qt/PyQt on Mac OS X

2009-06-03 Thread Jeremy Sanders
Are statically linked PyQt and Qt libraries supported on Mac OS X? If so, is there a guide to building them? I'm finding it a bit of a pain to get my application packaged with py2app as it leaves out the plugins and I have to copy them in by hand and mess around with linking paths. It would be

[PyQt] connect method launched command

2009-06-03 Thread nenduvel
hi, I'm having trouble with the signal/slot messages. I'm trying to catch a signal and then execute a method that i wrote. But instead of waiting for the signal it executes the method when i call the connect method. I make a wizard with a page. the page has a toolbar with an icon. qWizard = QWi

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread Darren Dale
On Wed, Jun 3, 2009 at 2:40 PM, Darren Dale wrote: > On Wed, Jun 3, 2009 at 2:20 PM, Darren Dale wrote: > >> On Wed, Jun 3, 2009 at 12:08 PM, Phil Thompson < >> p...@riverbankcomputing.com> wrote: >> >>> On Wed, 03 Jun 2009 17:37:29 +0200, "V. Armando Solé" >>> wrote: >>> > Hello, >>> > >>> > T

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread Darren Dale
On Wed, Jun 3, 2009 at 2:20 PM, Darren Dale wrote: > On Wed, Jun 3, 2009 at 12:08 PM, Phil Thompson < > p...@riverbankcomputing.com> wrote: > >> On Wed, 03 Jun 2009 17:37:29 +0200, "V. Armando Solé" >> wrote: >> > Hello, >> > >> > The problem can be solved as shown below. >> > >> > It seems the

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread Darren Dale
On Wed, Jun 3, 2009 at 12:08 PM, Phil Thompson wrote: > On Wed, 03 Jun 2009 17:37:29 +0200, "V. Armando Solé" > wrote: > > Hello, > > > > The problem can be solved as shown below. > > > > It seems the linux 32 bit implementation gets confused in > > createIndex(row, column, a) when a is not an in

Re: [PyQt] QAction menu questions

2009-06-03 Thread Scott Frankel
Hello David & Darryl, On Jun 3, 2009, at 7:22 AM, dbod...@trolltech.com wrote: On Wed Jun 3 13:28:15 BST 2009, Darryl Wallace wrote: Is there an example someone could point me to that demonstrates how to specify the About Menu and item name, changing them from "Python" and "About Python

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread Phil Thompson
On Wed, 03 Jun 2009 17:37:29 +0200, "V. Armando Solé" wrote: > Hello, > > The problem can be solved as shown below. > > It seems the linux 32 bit implementation gets confused in > createIndex(row, column, a) when a is not an integer but a long. With > small values of a (10, 100, 1000), the in

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread V. Armando Solé
Hello, The problem can be solved as shown below. It seems the linux 32 bit implementation gets confused in createIndex(row, column, a) when a is not an integer but a long. With small values of a (10, 100, 1000), the indexId() method returns the supplied value. The solution is to call creat

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread V. Armando Solé
Dear Darren, There is something weird going on under linux 32 bit. The code below works fine on windows. On linux 64 bit, it is fine either after masking the values, either supplying a 32-bit masked identifier. That illustrates the fact the intended behavior of internalId() is to return the

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread Darren Dale
On Wed, Jun 3, 2009 at 10:37 AM, Darren Dale wrote: > > > On Wed, Jun 3, 2009 at 10:23 AM, "V. Armando Solé" wrote: > >> Darren Dale wrote: >> >>> Hi Armando, >>> >>> Relatedly, I think there is a small problem with the PyQt4 documentation >>> for the overloaded QAbstractItemModel.createIndex me

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread Darren Dale
On Wed, Jun 3, 2009 at 10:23 AM, "V. Armando Solé" wrote: > Darren Dale wrote: > >> Hi Armando, >> >> Relatedly, I think there is a small problem with the PyQt4 documentation >> for the overloaded QAbstractItemModel.createIndex method. It looks like Qt's >> documentation for passing a pointer is

Fwd: [PyQt] QAction menu questions

2009-06-03 Thread dboddie
On Wed Jun 3 13:28:15 BST 2009, Darryl Wallace wrote: > > Is there an example someone could point me to that demonstrates how to > > specify the About Menu and item name, changing them from "Python" and > > "About Python to "MyApp" and "About MyApp?" > > I run your script and the window title says

Re: [PyQt] Qt or PyQt problem?

2009-06-03 Thread Darren Dale
Hi Armando, On Wed, Jun 3, 2009 at 9:34 AM, "V. Armando Solé" wrote: > Hello, > > I think I have fallen into a Qt bug but perhaps I am wrong. > > According to the (latest) Qt documentation, QAbstractItemModel.createIndex > takes a uint32 as the model index internalId, while the internalId() meth

[PyQt] Qt or PyQt problem?

2009-06-03 Thread V. Armando Solé
Hello, I think I have fallen into a Qt bug but perhaps I am wrong. According to the (latest) Qt documentation, QAbstractItemModel.createIndex takes a uint32 as the model index internalId, while the internalId() method of QModelIndex returns a uint64. I guess my problems are coming from that i

Re: Fwd: [PyQt] QAction menu questions

2009-06-03 Thread Darryl Wallace
Hello, Is there an example someone could point me to that demonstrates how to specify the About Menu and item name, changing them from "Python" and "About Python to "MyApp" and "About MyApp?" I run your script and the window title says "Menu Test" and under the help I have "About My App" and

Re: [PyQt] Installing PyQt-win-commercial-4.5-snapshot-20090601

2009-06-03 Thread Phil Thompson
On Wed, 3 Jun 2009 18:51:10 +1000, Peter Georges wrote: > When attempting to install the latest PyQt snapshot I get the following > error: > > C:\temp\pyqt\PyQt-win-commercial-4.5-snapshot-20090601>C:\python25\python.exe > > configure.py -p %QMAKESPEC% --bindir=%PYQTDIR%/bin > --destdir=%PYQTD

[PyQt] Installing PyQt-win-commercial-4.5-snapshot-20090601

2009-06-03 Thread Peter Georges
When attempting to install the latest PyQt snapshot I get the following error: C:\temp\pyqt\PyQt-win-commercial-4.5-snapshot-20090601>C:\python25\python.exe configure.py -p %QMAKESPEC% --bindir=%PYQTDIR%/bin --destdir=%PYQTDIR%/py25 --plugin-destdir=%PYQTDIR%/plugins --sipdir=%SIPDIR%/sip *