I need to associate some data with each node in a GTKCTree. Since
GTKCTreeNode is a struct in C (correct me if I am wrong), how can I do
this? Anyone have any ideas. Right now have created an array of tupples
that looks like this:

[(node,id,),(node,id,)...]

The problem with that is that I have to look up the id every time there
is a 'tree-select-row' signal, by iterating through the array. All that
I get back from the .connect to the 'tree-select-row' signal is a
reference to the tree I am in, the node that was selected, and the
column that was clicked.

My thoughts were to use:

1) Use set_data type commands, but that won't work because GTKCTreeNode
is a C struct, not an object in python
2) use a hidden column in the CTree Widget, but I don't like that at
all...nor do I know if it is possible....

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

Reply via email to