开发者

Can you have a GtkTreeView that only has checkboxes on the children rows?

开发者 https://www.devze.com 2023-01-26 21:17 出处:网络
I\'d like to have a GtkTreeView that has parents with no checkbox, and all of the children开发者_开发百科 have checkboxes. Everything I have tried (and seen) puts checkboxes on every row.Looks like th

I'd like to have a GtkTreeView that has parents with no checkbox, and all of the children开发者_开发百科 have checkboxes. Everything I have tried (and seen) puts checkboxes on every row.


Looks like the easiest way to do this is to put the checkbox in its own gtk.TreeViewColumn and have a column of data indicating whether it is visible or not. The visible column number is passed to gtk.TreeViewColumn. See the Tree View -> Tree Store demo that comes with Gtk+ for more details.

0

精彩评论

暂无评论...
验证码 换一张
取 消