[PyKDE] Question about PyQt changes

Phil Thompson phil at riverbankcomputing.co.uk
Fri May 13 08:59:58 BST 2005


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> I'm trying to package a PyQt application (Kodos) and it kept crashing
> with this error:
>
> TypeError: argument 1 of QSizePolicy() has an invalid type
>
> After googling, I found an explanation of the fix at another app site
> (Kumula):
>
> QSizePolicy.Expanding,QSizePolicy.Fixed
>
> This change happened after I installed the latest version of PyQt. I'm
> just curious: was this documented anywhere official? Did anyone else
> encounter this?

I don't tend to document bug fixes - which this is. However, since it
gives the appearence of introducing a bug then perhaps it should be more
clearly documented. 99% of the time the bad code is generated by pyuic
rather than being handwritten, so just recompile your .ui files.

Phil




More information about the PyQt mailing list