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'

Cheers,
Pete
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to