This section of the tutorial is under development.
ctree = GtkCTree(columns, tree_column, titles) ctree = GtkCTree(columns, tree_column)
The columns argument specifies the number of columns that the CTree will contain. The tree_column argument specifies which of those columns is to contain the tree. Columns are numbered starting from 0.
With the first function above, the titles
argument contains a list of strings that contain the captions for the column
headings. A typical code fragment using the GtkCTree()
function would be:
# CTree column titles titles = [ "Location" , "Description" ] ctree = GtkCTree(2, 0, titles)
This would create a new CTree with two columns entitled "Location" and "Description", with the first column containing the tree.