TreeView
Bases: TTKWrapperBase, WidgetCapabilitiesMixin, TtkStateMixin, Treeview
bootstack wrapper for ttk.Treeview with bootstyle support.
__init__
__init__(
master: Master = None, **kwargs: Unpack[TreeViewKwargs]
) -> None
Create a themed bootstack Treeview.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
master
|
Master
|
Parent widget. If None, uses the default root window. |
None
|
Other Parameters:
| Name | Type | Description |
|---|---|---|
columns |
list
|
Sequence of column identifiers. |
displaycolumns |
list | str
|
Subset and order of columns to display. |
show |
str
|
Which parts to display (e.g., 'tree', 'headings'). |
height |
int
|
Number of rows to display. |
padding |
int | tuple
|
Extra padding around the widget. |
selectmode |
str
|
Selection mode ('browse', 'extended', 'none'). |
style |
str
|
Explicit ttk style name. |
surface |
str
|
Optional surface token; otherwise inherited. |
density |
str
|
The compactness of widget content ('default' or 'compact'). |
border_color |
str
|
The color of the border around the table. |
show_border |
bool
|
Whether to show a border around the table. |
open_icon |
str | dict
|
The icon used for open state. |
close_icon |
str | dict
|
The icon used for close state. |
select_background |
str
|
A semantic color token used to set selection background color. |
header_background |
str
|
A semantic color token used to set the header background color. |
style_options |
dict
|
Optional dict forwarded to the style builder. |