[PyQt] Problems with QX11EmbedContainer
david at boddie.org.uk
Sat Jul 28 11:56:01 BST 2007
On Saturday 28 July 2007 03:27, Giovanni Bajo wrote:
> On sab, 2007-07-28 at 00:17 +0200, David Boddie wrote:
> > You should be passing '-into' rather than '-wid'. It might also be a good
> > idea to pass the QX11EmbedContainer's window ID using QString.number(wid)
> > instead of just str(wid). Python may interpret the ID as a long integer
> > value, so its representation will include a trailing "L" - it's not
> > something you really want to pass to xterm.
> >>> repr(1L)
> ... or Python would miss a pretty basic feature!
You're correct. I'd assumed that repr() would do the same as str() for
long integers just as it does for integers. I should have checked that
before posting. :-(
More information about the PyQt