[PyQt] PyQt4.4 - Exporting .ui to .py problems with QIcon
Phil Thompson
phil at riverbankcomputing.com
Tue May 20 22:19:23 BST 2008
On Tuesday 20 May 2008 20:06:38 Gustavo A. Díaz wrote:
> Well.. seems still does not work. Today i have time to test this and i
> have:
>
> Traceback (most recent call last):
> File "OpenCoffee.py", line 59, in <module>
> mainApp = OpenCoffee()
> File "MainApp.py", line 84, in __init__
> self.setupUi(self)
> File
> "/home/gustavo/Documentos/Desarrollo/OpenCoffee/trunk/opencoffee-server/gui
>/ui_main.py", line 19, in setupUi
>
> icon.addPixmap(QtGui.QPixmap(":/Icons/icons/windowIcon.svg",QtGui.QIcon.Nor
>mal,QtGui.QIcon.Off)) TypeError: argument 2 of QPixmap() has an invalid type
>
> ui_main.py is the exported .ui.
Ho hum - a bracket in the wrong place.
Phil
More information about the PyQt
mailing list