Perhaps you want to use something like TkTable better than TreeView.
In TreeView, the first column is defined to indicate the name or identifier for the object described on each row. From docs :
The treeview widget can display and allow viewing through a hierarchy of elements and can display one or more attributes of each element in the form of columns to the right of the tree.
Fill in the first column:
tree.insert('', insert_mode, text='name first col')
If you still want to use the first column as a regular column, you can try:
tree['columns'] = list_columns[1:] for record in records: tree.insert("", 0, text=record[0], values=record[1:])
However, I do not know how or even if it is possible to also fill in the header for this first column in the TreeView.
source share