On Wed, 17 Mar 2004 15:30:21 -0500
george young <[EMAIL PROTECTED]> threw this fish to the penguins:

> [pygtk-1.99.17, gtk+-2.2.4, python-2.3.3, x86 linux]
> 
> I have a gtk.VBox with as many as 800 children packed into it.
> I want to remove one of the children.  I tried naively:
> 
>   del self.opsetbox.get_children[4]
> and
>   self.opsetbox.get_children[4].destroy()
> 
> and nothing happened. (I'm not surprised, just disappointed...)
> 
> How can I remove a particular child from the vbox?
...

Umm, yes, well, vbox.remove() does seem to work just fine.  I'm very
sorry not to have looked a bit closer before posting.  Its right there
in the docs for gtk.container...

Thanks all,
        George
-- 
"Are the gods not just?"  "Oh no, child.
What would become of us if they were?" (CSL)
_______________________________________________
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