TreeView.insertColumnWithDataFunc

Convenience function that inserts a new column into the gtk.tree_view.TreeView with the given cell renderer and a gtk.types.TreeCellDataFunc to set cell renderer attributes (normally using data from the model). See also gtk.tree_view_column.TreeViewColumn.setCellDataFunc, gtk.tree_view_column.TreeViewColumn.packStart. 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.

More...
class TreeView
int
insertColumnWithDataFunc

Parameters

position int

Position to insert, -1 for append

title string

column title

cell gtk.cell_renderer.CellRenderer

cell renderer for column

func gtk.types.TreeCellDataFunc

function to set attributes of cell renderer

Return Value

Type: int

number of columns in the tree view post-insert

Detailed Description