On Tue, Nov 04, 2003 at 12:52:09PM +1100, Malcolm Tredinnick wrote:
> 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?

[snip]

> 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.

As a general tip: normally, you can avoid the need for Glade's custom
widget by placing a container with a dummy element (or an empty
container, though I like that less) and doing the composition in your
code at runtime, using container.add(widget), container.pack_*(widget),
or even widget.reparent(container).

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331
_______________________________________________
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