How to add Check box to treeview in Tcl/Tk? -


i wanted add checkbox in ttk::treeview ?

i read few documents , found not possible add check box add ttk::treeview. there other option ?

the treeview widget isn't sophisticated enough it, not without lot of work. (you might able approximation of doing styles define checked , unchecked lines , using binding switch between them… pretty horrific , fragile.) yes, means can't it, in turn keeps widget's api simpler learn. that's tricky design tradeoff.

your best bet tktreectrl, has reputation of being able might conceive of ever wanting tree (or table, or grid) widget. ever. understand though (not being user of it) it's rather tricky use; i've heard recommended me tktreectrl wrapped code restrict api particular purpose need.


Comments