From pykde Tue Feb 01 10:39:36 2005 From: Wido Depping Date: Tue, 01 Feb 2005 10:39:36 +0000 To: pykde Subject: Re: [PyKDE] SIP snapshot issue Message-Id: <127079e105020102395e5f209b () mail ! gmail ! com> X-MARC-Message: https://marc.info/?l=pykde&m=110725441201823 On Mon, 6 Dec 2004 17:14:28 +0100, Fredrik Juhlin wrote: > Trying to use the latest SIP snapshot I ran into trouble with some > pyuic-generated code. It seems that it will at times generate code such as: > self.TextLabel2.setSizePolicy(QSizePolicy(0,5,0,0,self.TextLabel2.sizePolicy().hasHeightForWidth())) > which results in the error: > TypeError: too many arguments to QSizePolicy(), 0 at most expected > > My wild guess was that this is an effect of the new typedef code that is > mentioned in the changelog. I tried using the latest PyQt snapshot to see if > that sorted things out, but it didn't. I just wanted to note that I got the same error report from Carsten Lohrke, who encountered this error in my application Luma ( http://luma.sf.net ). The files generated by pyuic use integers instead of QSizePolicy::SizeType, which seems to trigger the error in the snapshot. All releases up to 3.13 don't have this problem. Qt designer doesn't use QSizePolicy::SizeType in its .ui files, instead it uses integers. So either pyuic has to be fixed or Trolltech intends that QSizePolicy::SizeType can be mapped to an integer. mfg. Wido -- Wido Depping ICQ: 51303067 AIM: wido3379 Jabber: wido@jabber.ccc.de Blog: http://widoww.blogspot.com _______________________________________________ PyKDE mailing list PyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde