Convenience function that inserts a new column into the gtk.TreeView with the given cell renderer and a GtkTreeCellDataFunc to set cell renderer attributes (normally using data from the model). See also TreeView.columnSetCellDataFunc, TreeView.columnPackStart. If tree_view has “fixed_height” mode enabled, then the new column will have its “sizing” property set to be GTK_TREE_VIEW_COLUMN_FIXED.

class TreeView


position int

Position to insert, -1 for append

title string

column title

cell CellRenderer

cell renderer for column

func GtkTreeCellDataFunc

function to set attributes of cell renderer

data void*

data for func

dnotify GDestroyNotify

destroy notifier for data

Return Value

Type: int

number of columns in the tree view post-insert