On Tue, May 17, 2005 at 06:22:46PM -0400, Samantha wrote:

> 2. If #1 is not available, here is what I am trying to do. I have a main
> window with a tree on the left  side of a window. The tree is in a
> table. When the user clicks on a tree widget(?), something happens on
> the right side. I have been able to send a window as an argument to the
> function that does things on the right side of the window, but the
> widgets embedded in the window (being sent as an argument) doesn't
> appear to get inherited. I learned that I cannot have more than one type
> of gtkWidget in a gtkWindow, so I am not sure how I can go about
> accomplishing what I am trying to do. 

This is usually called "master/detail".  The tree is your master and the the
right side is the detail.  I'd do this with a paned window, with a notebook
on the right hand side that has "Show Tabs" set to "No" (programatically:
notebook.set_show_tabs(gtk.FALSE); I'd leave the tabs visible while
testing).  Each page of the notebook will contain the different widgets you
want to show, so you just have to switch pages in response to the tree
selection to show the correct widget.

Dave Cook



_______________________________________________
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