开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜