On Wed, 8 Sep 2010 14:56:00 +0200, "Hans-Peter Jansen" <[email protected]> wrote: > Hi Phil, > > there's an issue with the order of flags when coercing to int for e.g. > QPainter.paintText(): > >>>> from PyQt4.QtCore import * >>>> type(Qt.AlignLeft|Qt.TextWordWrap|Qt.AlignTop) > <class 'PyQt4.QtCore.Alignment'> >>>> type(Qt.AlignLeft|Qt.AlignTop|Qt.TextWordWrap) > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > TypeError: unsupported operand type(s) for |: 'Alignment' and 'TextFlag'
Should be fixed in tonight's PyQt snapshot. Thanks, Phil _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
