Re: [PyQt] Compiler Error using SIP: error C3861: 'PyUnicode_FromFormat': identifier not found

2009-10-26 Thread Phil Thompson
On Sun, 25 Oct 2009 14:45:44 -0700, Jamie Riotto jamie.rio...@gmail.com wrote: Hi, I'm trying to learn to use SIP, and I've started out with a simple Vector class. The sip file looks like this: === %Module Vec3 0

Re: [PyQt] Table changed/modified method

2009-10-26 Thread Filippo Rebora
4.4.3 By the way, problem solved using self.connect(self.tableWidget, QtCore.SIGNAL(cellChanged(int, int)),self.tableWasModified) Yes it was quite simple, after all, but I'm totally new to signals incidentally self.tableWidget.cellChanged(int, int).connect(self.tableWasModified) Still doesn't

Re: [PyQt] Compiler Error using SIP: error C3861: 'PyUnicode_FromFormat': identifier not found

2009-10-26 Thread Jamie Riotto
Phil, Thanks for the pointer. It looks like PyUnicode_FromFormat() was added in Python 3.0, and I missed the following lines in QPoint.h which explains that: #if PY_MAJOR_VERSION =3 PyUnicode_FromFormat #else PyString_FromFormat Now I just have to work around the fact that PyString

[PyQt] Single-platform distribution

2009-10-26 Thread Giovanni Bajo
Hello Phil, given that Qt has already moved to a single all-platform source code distribution (for commercial licenses), would you evaluate doing the same for PyQt? It simplifies importing PyQt as vendor branch a lot. Thanks! -- Giovanni Bajo Develer S.r.l. http://www.develer.com

Re: [PyQt] QTreeWidget invisible root item

2009-10-26 Thread Baz Walter
Taylor Carrasco wrote: The situation is - I have many root nodes coming from Maya, all going to be displayed in column 0, and their subsequent row, with a parent/child relationship (obviously the roots have no parent). But my question was related to whether I should bother with this invisible

Re: [PyQt] This program made python seg fault,how to solve?

2009-10-26 Thread Phil Thompson
On Sun, 25 Oct 2009 02:24:05 +0800, Fei Xue xue...@gmail.com wrote: Hi! The code below can make python seg fault. Steps to reproduce: run this program,modify the value of a cell, then click submit button,python will seg fault.The correct result is the value of the second column will change to

Re: [PyQt] Table changed/modified method

2009-10-26 Thread Baz Walter
Filippo Rebora wrote: self.tableWidget.cellChanged(int, int).connect(self.tableWasModified) Still doesn't work self.tableWidget.cellChanged is a pyqtBoundSignal object. signals can have several different signatures. so pyqtBoundSignal objects define __getitem__ to allow the different

[PyQt] Phonon and currentSource Issues

2009-10-26 Thread Jonathan Noble
Hi, I've got an app that relies on Phonon heavily and i've been noticing issues with mediaObject.currentSource calls. I have a function that is linked to mediaObject.currentSourceChanged() and when it's called it retrieves info about the currentSource. However, the info I get rarely refers to

[PyQt] Re: Phonon and currentSource Issues

2009-10-26 Thread jonathan noble
I should probably mention this only happens during continuous playback. When the mediaOject.aboutToFinish SIGNAL is called, I enqueue a track. If I stop() the playback, clear() mediaObject then setCurrentSource() there is no issue, but that is very inconvenient. Note: this may be a dupe, sorry