How to expand all items in a GtkTreeView on startup

Can anyone tell me how to set the tree attribute so that all tree elements are displayed by default?

The first image shows what I am getting, while the second image shows what I would like to get automatically, that is, to expand GtkTreeView

without clicking the expander.

GtkTreeView without expanding the items, not what I wantGtkTreeView showing all items expanded, without clicking the expander to show <code> sd0 </code>
      <br>
        
      <br>
     item

+3
gtk gtktreeview


source to share


1 answer


You have not specified a language. In C, you have to call gtk_tree_view_expand_all () . In Python, you have to callmy_tree.expand_all()



+4


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics