On Mon, 9 Apr 2001, David Robertson wrote:

> 
> I am trying to build a simple tree using the following code:
> 
> mytree = GtkTree()
> myitem = GtkTreeItem("something")
> mytree.append(myitem)
> 
> my question is, how to actually build the nodes and leafelets... I have the
> GTK reference but it is in C and I had given up on C 10 years ago so it is
> pretty greek to me. Any help on any functions or classes I am overlooking
> would be appreciated. I tried tinkering with GtkTreeItem.set_submenu to no
> avail.

You can use the set_subtree() method of the tree item to specify a GtkTree
as a subtree.  I don't recommend using GtkTree though, as it is fairly
broken.

The CTree widget can do everything Tree does, and is less broken.

> 
> Thanks for your help.
> 
> Another quick question. Is there an actual reference for the python GTK
> wrapper?

Not yet.

James.

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


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to