1

我想要一个GtkTreeView没有复选框的父母,所有孩子都有复选框。我尝试过(看到过)的所有东西都在每一行上放置了复选框。

4

1 回答 1

2

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.

于 2010-11-28T15:08:59.247 回答