[PyQt] pyuic4 issues uncovered from PyQwt5
Phil Thompson
phil at riverbankcomputing.com
Tue Oct 5 18:08:39 BST 2010
On Mon, 4 Oct 2010 13:11:41 +0200, "Hans-Peter Jansen" <hpj at urpla.net>
wrote:
> Hi Phil,
>
> I've tackled to build PyQwt5 in my build service repo for openSUSE
again:
>
> https://build.opensuse.org/project/show?project=home%3Afrispete%3APyQt
> http://download.opensuse.org/repositories/home:/frispete:/PyQt/
>
> A few tests revealed some issues of pyuic4. Try to compile the attached
ui
> description. It produces code like:
>
> self.AnalogClock = Qwt5.QwtAnalogClock(Dialog)
> self.AnalogClock.setProperty(_fromUtf8("visibleBackground"),
False)
> self.AnalogClock.setLineWidth(4)
> self.AnalogClock.setFrameShadow(QtGui.QwtDial.Plain)
> self.AnalogClock.setMode(QtGui.QwtDial.RotateNeedle)
> self.AnalogClock.setOrigin(270.0)
>
> Please note the property value QtGui.QwtDial.Plain: it should read
> Qwt5.QwtDial.Plain. Consequently, other references to Qwt5 property
values
> are wrong as well.
>
> Finally, the import for Qwt5 is below the widget code. While this does
not
> lead to wrong behavior, it is somewhat "surprising", as everybody would
> expect these imports located near the PyQt4 imports.
Should be fixed in tonight's snapshot.
Thanks,
Phil
More information about the PyQt
mailing list