[Glade-users] Partial interfaces - no top level?

Matt Savigear mcs_glade at savigear.com
Tue Apr 7 18:18:37 EDT 2009


matthew pr wrote:
> You can build from a specific widget in the "glade.XML" method.
> For example (using python, but it should be similar for ruby):
> frame_tree = gtk.glade.XML('somewidget.glade', 'someframe')
> frame = frame_tree.get_widget('
> someframe')
> yourgui.add(frame)
> 
> Put your widget inside a 'window' toplevel (or any other toplevel).
> This has the advantage that if you ever want to display your widget
> seperately, you can just do:
> window_tree = gtk.glade.XML('somewidget.glade')
> without the second argument.
> 
> I hope this helps!

Ah, this makes a lot of sense. Yes, I should get a chance to try this
out at the weekend, or even before if I'm lucky. Thanks for the steer!

-- 
Cheers,

Matt.

"All placebos are not the same - Pacifex is the only placebo that's
green and shaped like a triangle. Pacifex: A doctor gave it to you."


More information about the Glade-users mailing list