[PyKDE] Pyuic

Phil Thompson phil at river-bank.demon.co.uk
Fri Nov 10 11:11:24 GMT 2000


mark kimsal wrote:
> 
> There seems to be a bug/feature of pyuic that is a tad bit annoying.
> When I compile the .ui files I made with QtDeveloper I get errors in all
> the QSizePolicy function calls.  The python outputted file contains
> lines like this
> 
> self.MultiLineEdit10.setSizePolicy(QSizePolicy(7,1,MultiLineEdit10.sizePolicy().hasHeightForWidth()))
> 
> Python will complain about these lines so I have to go through and
> replace them with lines like this
> 
> self.MultiLineEdit10.setSizePolicy(QSizePolicy(7,1,self.MultiLineEdit10.sizePolicy().hasHeightForWidth()))
> 
> I have the windows version of PyQt2.2, the zip file has the name:
> PyQt-2.2-win32-Py20-1.zip
> 
> Is this a problem with pyuic, qt developer or python for windows?  Or am
> I just using developer incorrectly?

I think this has already been fixed in the current CVS (it's a pyuic
problem - get a new copy of uic.cpp). If it hasn't then send me a copy
of the .ui file.

Phil




More information about the PyQt mailing list