On Mon, 18 Sep 2000, Eric Gillespie, Jr. wrote:
> With Gnome-Python 1.0.53 from Debian unstable, i can't seem to
> attach any data to a row in a CTree. I don't know of any other
> way to find what the user selected. Even if i were to catch the
> selection signal, i would still have the same problem of mapping
> the node to useful data. Am i missing something obvious?
You are using the wrong method: to attach data to a row in a GtkCTree, you
need to call
ctree.node_set_row_data(node, "hey")
^^^^^
By the way, you will have something much better if you insert your nodes
using a list of labels, as in:
node = ctree.insert_node(None, None, ['hey'])
(a GtkCTree can have multiple columns, and you need to provide a list of
strings to insert a new item. By default, there is only one column, and it
is the tree column, so a one element list is fine)
Cheers
Alexandre, who might have been asking the same question just one month
ago...
--
Alexandre Fayolle
http://www.logilab.com - "Mais o� est donc Ornicar ?" -
LOGILAB, Paris (France).
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk