How Can I add checkbox in ttk Treeview

给你一囗甜甜゛ 提交于 2021-02-08 11:10:17

问题


I searched very much for this answer,Then I came to know that we can't embedded widgets into Treeview But I found the Features of Treeview. In this below Features It is telling that Treeview will support of including checkbox also.

Here is a list of TreeView features:

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. 

来源:https://stackoverflow.com/questions/50015662/how-can-i-add-checkbox-in-ttk-treeview

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!