You must remove the widget first:
 paned.remove(widget)

If you do not have a reference to the child widget, you can use the
children() method of the container to get a list of its children.  So for
a paned widget, the following should work:
  paned.remove(paned.children()[1])
  paned.add2(new_widget)

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


On Mon, 12 Jul 1999, Fred L. Drake wrote:

> 
>   Is there a way to replace one with with another, say in a GtkHPaned?
> I'd like to be able to create a new widget based on what's selected in 
> the other side of the hpaned; just calling add2() again doesn't seem
> to work, but it doesn't raise any errors either.
>   Thanks!
> 
> 
>   -Fred
> 
> --
> Fred L. Drake, Jr. <[EMAIL PROTECTED]>
> Corporation for National Research Initiatives
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
> 

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to