[PyQt] setItemDelegateForColumn() doesn't work? (so setItemDelegateForRow() does)

2010-01-03 Thread Zhaohao Liang
Hi I'm using PyQt 4.6.2 for Python 2.6. It seems that the setItemDelegateForColumn() of QTableWidget doesn't work. I have checked it with below code: print ui.tableWidget.itemDelegateForColumn(0) ui.tableWidget.setItemDelegateForColumn(0, MyItemDelegate()) print ui.tableWidget.itemDel

Re: [PyQt] multiple sound files in queue in phonon

2010-01-03 Thread Jan Haag
As I just messed up my PyQt-installation I tried with the plain C++ original example -- I added several files (wav, shortest file ~0.7s) and didn't have any problems... If you are running KDE4 you could try using Amarok's latest Qt4 version, as it, too, uses Phonon as backend. If that doesn't

Re: [PyQt] Subject: Website and Mailing List Move

2010-01-03 Thread Diego Casella ([Po]lentino)
GMail recognized this digest as spam O.o I hope this info could be useful, cheers ! Diego. Message: 3 > Date: Sun, 03 Jan 2010 16:53:31 + > From: Phil Thompson > To: PyQt Mailing List > Subject: [PyQt] Website and Mailing List Move > Message-ID: <46d59abbae2335a5009a9bcfbc31b...@localhost>

Re: [PyQt] multiple sound files in queue in phonon

2010-01-03 Thread Haarman
It looks like it has problems with shorter files; when I add some longer files it works. Could you verify that at your box shorter files also do not work? On Sun, Jan 3, 2010 at 10:36 PM, Haarman wrote: > On Sun, Jan 3, 2010 at 8:57 PM, Jan Haag wrote: >> There is another thing you could try: Th

Re: [PyQt] multiple sound files in queue in phonon

2010-01-03 Thread Jan Haag
I'm not sure wether or not there's an "official" way, but this works: >>> from PyQt4 import pyqtconfig >>> print pyqtconfig._pkg_config You'll have to filter out those variables you're actually interested in... Jan PS: I hope you don't mind CC'ing the list... On Jan 3, 2010, at 9:03 PM, H

Re: [PyQt] qgraphicsitem not cleared before paint(...) ?

2010-01-03 Thread Mads
Well, I should read the documentation more carefully to clarify my own ramblings: SetVisible(...) should not be called, but prepareGeometryChange() should be called *before* changing the bounding rectangle. /M On Sun, Jan 3, 2010 at 5:21 PM, Mads wrote: > Well, to answer my own question: >

Re: [PyQt] multiple sound files in queue in phonon

2010-01-03 Thread Jan Haag
There is another thing you could try: This trick is used in (PyQt-Dir)/ examples/phonon/musicplayer.py. Maybe you find a hint on your problem there... At least this was where I first found a solution to it. BTW, sorry for the list traffic... Jan It works for me... Could you post the last f

Re: [PyQt] multiple sound files in queue in phonon

2010-01-03 Thread Jan Haag
It works for me... Could you post the last few lines before the exception is raised and the complete stacktrace? BTW: What Python/PyQt/Qt/OS versions are you using? (I'm on Python 3.1.1/ PyQt 4.6.2 / Qt 4.6 / Mac OS 10.6) For now, my best guess would be a minor difference in the way P

Re: [PyQt] multiple sound files in queue in phonon

2010-01-03 Thread Haarman
Hi Jan, thx for your reply. I tried using your code but the lambda a, b: pass just gives a SyntaxError: invalid syntax So I tried creating an empty funcion and passed that to the connect but it gave me the same results. I think you made a typo or something? Please let me know cause if you figur

[PyQt] Website and Mailing List Move

2010-01-03 Thread Phil Thompson
The website and the mailing lists have been moved to a new server. Hopefully nobody noticed, but if you are seeing anything strange then please let me know. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailm

Re: [PyQt] qgraphicsitem not cleared before paint(...) ?

2010-01-03 Thread Mads
Well, to answer my own question: calling SelectionMarker.SetVisible(False) when clearing the selection and SelectionMarker.SetVisible(True) before painting does the trick. If anybody has some clarifications as to why this is needed - please feel free to comment. Best regards, Mads On Sun, Jan

[PyQt] PyQt4.QtCore not a valid Win32 application - with windows installer

2010-01-03 Thread Sibylle Koczian
Hello, trying to import PyQt4.QtCore I get this: Python 3.1.1 (r311:74483, Aug 17 2009, 16:45:59) [MSC v.1500 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information. import PyQt4.QtCore Traceback (most recent call last): File "", line 1, in import PyQt4

[PyQt] qgraphicsitem not cleared before paint(...) ?

2010-01-03 Thread Mads
Hi, I'm trying to implement a selection marker so the user can see the selected area in a QGraphicsView. The selection is drawed from a mousePressEvent(..) until a mouseReleaseEvent(..). However the QGraphicsItem isn't always cleared before the next selection? Is there a flush() or something else