TreeViewColumn.addAttribute

void addAttribute(gtk.cell_renderer.CellRenderer cellRenderer, string attribute, int column)

Adds an attribute mapping to the list in tree_column.

The column is the column of the model to get a value from, and the attribute is the parameter on cell_renderer to be set from the value. So for example if column 2 of the model contains strings, you could have the “text” attribute of a [gtk.cell_renderer_text.CellRendererText] get its values from column 2.

Parameters

cellRendererthe [gtk.cell_renderer.CellRenderer] to set attributes on
attributeAn attribute on the renderer
columnThe column position on the model to get the attribute from.

Deprecated

Use GtkColumnView instead