Use of `text` in Gtk.TreeViewColumn

What is the text argument in Gtk.TreeViewColumn?

if i == 0:
                cell.props.weight_set = True
                cell.props.weight = Pango.Weight.BOLD
            # the column is created
            col = Gtk.TreeViewColumn(column, cell, text=i)

Line number : 42 from https://developer.gnome.org/gnome-devel-demos/stable/treeview_simple_liststore.py.html.en#code
But this property is not mentioned in the Properties section of Gtk.TreeViewColumn in docs.

Few more doubts I have are:

  1. How can I make the text of the TreeView selectable (not editable)?
  2. I sometimes get this error while making treeviews : GTK_IS_WIDGET FAILED

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.