column(column, option=None, **kw)
Query or modify the options for the specified column.
If kw is not given, returns a dict of the column option values. If option is specified then the value for that option is returned. Otherwise, sets the options to the corresponding values.
The valid options/values are:
-
- id
-
Returns the column name. This is a read-only option.
-
- anchor: One of the standard Tk anchor values.
-
Specifies how the text in this column should be aligned with respect to the cell.
-
- minwidth: width
-
The minimum width of the column in pixels. The treeview widget will not make the column any smaller than specified by this option when the widget is resized or the user drags a column.
-
- stretch: True/False
-
Specifies whether the column’s width should be adjusted when the widget is resized.
-
- width: width
-
The width of the column in pixels.
To configure the tree column, call this with column = “#0”
Please login to continue.