如何在ttk Treeview中添加复选框

时间:2018-04-25 06:44:06

标签: python tkinter

我非常搜索这个答案,然后我才知道我们不能将小部件嵌入到Treeview中但我找到了Treeview的特性。 在下面这个特点它告诉Treeview将支持包括 复选框也是。

以下是TreeView功能列表:

Auto-sizing column widths and row heights.
Hide/move columns or nodes.
Sortable by columns or sub-trees.
External data storage (in a blt::tree).
Multiple TreeViews can share all a tree.
Easy to use dynamic loading (for sub-trees).
Support for multiple style types, including:
    -> textbox: text cell with optional images.
    *-> checkbox: a boolean value.*
    -> combobox: a multi-choice value.
    -> barbox: numeric value with progress bar.
    -> windowbox: arbitrary embedded windows. 
Styles can be applied to cols, rows and/or cells
The -altstyle option for alternating rows (bgcolor, etc).
The -levelstyles option for per-level styles.
Background image-tile: widget, columns, and cell-styles.
Drop shadow text.
Powerful builtin cell editing.
Dual mode display: flat and tree. 

0 个答案:

没有答案