On Thursday 07 June 2007 10:28 pm, Emanuele Santos wrote: > 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?
This was changed in PyQt 4.2. If you want the address of the Display then use sip.unwrapinstance(). Phil _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
