Dnia 24-05-2005, wto o godzinie 07:37 +0200, N. Volbers napisał:
> > The documentation about Plugs and Sockets did not allow me to find out 
> > whether they can be used to embed anything:
> > 
> > - can they only be used to embed PyGtk widgets into another PyGtk window?
> > - or can I embed anything using plugs and sockets ?
> 
> You can embed any X window object into a gtk.Socket _if_ and only if you 
> have the window's xwindow id.  Take a look at the example in the pygtk 
> tutorial!  To embed an xterm:

Note that isn't really true. You can reliably embed foreign windows if
and only if both sides comply to some common protocol (like Plug and
Socket). Otherwise, there's number of nasty corner-cases and things that
can go wrong, and you cannot just embed arbitrary XID and expect it to
work in all cases. Best thing here is to try, and see if things don't
break too badly.

Cheers,
Maciej

-- 
Maciej Katafiasz <[EMAIL PROTECTED]>

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to