On Tue, 2003-11-04 at 12:26, Yang Zheng wrote:
> Instead of a popup, I would like to embed your console into a window
> with other existing features (constructed with Glade).  Do you have any
> tips on how to do that?  I am looking into Glade's custom widget, am I
> going in the right direction?

I have not tested what I am about to say -- I just had a quick read over
Pier's code...

It may not require all the trickiness of using a custom widget. The
Shell itself is just a frame widget (it you set with_window = 0). If you
construct the widget as s = Shell_Gui(0), s.gui will be the frame widget
that you can put into your widget hierarchy at the appropriate point.

So inside your larger application you will have some kind of
GtkContainer for holding the embedded shell. Just add the new frame
widget (s.gui) to this container and it should work. There are probably
a couple of details missing here, but I think the theory is correct. In
any case, look at the frame created in the Shell_Gui class and utilise
that directly.

Cheers,
Malcolm
_______________________________________________
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