| PyGTK Tutorial | ||
|---|---|---|
| <<< Previous | Chapter 12. CTree Widget | Next >>> |
Although only a single data element can be stored for each row, this data element can be any variable or data structure, which indirectly allows a set of data to be referenced.
The method for setting row data is:
ctree.node_set_row_data(node, data) |
The method set_row_data() simply takes as arguments references to the node and data.
The method:
data = ctree.get_row_data(node) |
retrieves the data associated with a node.
| <<< Previous | Home | Next >>> |
| Setting CTree Attributes | Up | Tree Widget |