[PyQt] QtGui.QX11Info.display() problem

Emanuele Santos emanuelesantos at gmail.com
Thu Jun 7 22:28:46 BST 2007


Hi Phil and others
We are facing problems with QtGui.QX11Info.display() with recent versions of
PyQt4/sip (today's snapshot + Qt 4.3.0).
When trying to get the pointer to the display and casting it to an int we
get the error message:
TypeError: int() argument must be a string or a number, not 'Display'

When printing the result of QtGui.QX11Info.display() we get
<PyQt4.QtGui.Display object at 0x14f4d98>

When printing from an old version (PyQt-snapshot-20070228 + Qt 4.2.0)
 that produces what we expect we get
<sip.voidptr object at 0x15d4e21>

Could you check if this is a sip/PyQt4 bug?

Thanks,

-- Emanuele.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20070607/53d10687/attachment.html


More information about the PyQt mailing list