Why not use node_set_row_data and node_set_row_data?

    someData = ("a", "tuple", "of", "stuff")

    ctree = GtkCTree ()
    node = ctree.insert_node (None, None, ("some text",))
    ctree.node_set_row_data (node, someData)

Then, later use ctree.node_get_row_data (node) to get someData.

Matt

On Tue, Jan 04, 2000 at 11:14:38PM +0100, Lodewijk Voge wrote:
> hello,
> 
> how can I get a fixed handle on a node of a CTree? when a node is selected,
> the handler is called with the selected node, as in normal gtk, but the given
> node in pygtk is a (newly created) PyGtkCTreeNode, which doesn't provide
> any access to the underlying (constant) GtkCTreeNode (or the pointer thereto,
> which would be good enough for me).
> 
> or am I going about this the wrong way? I want to maintain a dict of extra
> properties for the things that the nodes represent, and I want to use this
> dict from the various handlers. to index this dict, I need a hashable
> something. id(node) would work if the PyGtkCTreeNode wrapper objects would
> stay the same instead of being created on the fly.
> 
> Lodewijk
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to