[PyKDE] Consolidation of Qt module broke qtdemo I think

Phil Thompson phil at riverbankcomputing.co.uk
Mon Mar 6 19:00:27 GMT 2006


On Monday 06 March 2006 5:34 pm, Andreas Pakulat wrote:
> Hi,
>
> I think the consolidation of the Qt module introduced in the recent
> snapshot broke the qtdemo exmaple:
>
>   File
> "/home/andreas/compiling/python/PyQt4-gpl-snapshot-20060305/examples/tools/
>qtdemo/displaywidget.py", line 123, in paintEvent
> painter.fillRect(event.rect(), QtCore.Qt.white)
> TypeError: argument 2 of QPainter.fillRect() has an invalid type
>
> Not sure however since I didn't test it for a week... I don't really
> understand why Qt.white doesn't work, it's part of the GlobalColor
> enum...
>
> The import in displaywidget is
>
> from PyQt4 import QtCore, QtGui, QtXml...

Will be fixed in tonight's SIP snapshot.

Thanks,
Phil




More information about the PyQt mailing list