[PyQt] Problems with QX11EmbedContainer

Gustavo A. Díaz gustavo.diaz at gmail.com
Sat Jul 28 21:25:19 BST 2007


Anyway, it works will all of those.

Now, i am having a problem that i was thinking that may come:

Every time i press in any listWidget item of my app, seems the xterm
executes many instances in the background reaching a moment that i have many
"hidden" xterm consoles opened (plus the one inside the frame, which is the
only i want to have there).

How i could avoid this?

Console code:
http://opencoffee.lnxteam.org/trac/browser/trunk/opencoffee-server/core/tools/console.py

Main code:
http://opencoffee.lnxteam.org/trac/browser/trunk/opencoffee-server/MainApp.py#L314

Thanks Guys!

Cheers.

2007/7/28, David Boddie <david at boddie.org.uk>:
>
> 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)
> >
> > '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. :-(
>
> David
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>



-- 
Gustavo A. Díaz
GDNet Projects
www.gdnet.com.ar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20070728/2084d9af/attachment.html


More information about the PyQt mailing list