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>
        <script async src=
item" data-src="/img/98e5c8f0ee0a25549c502e46a3f165c9.png" class=" lazyloaded" src="https://fooobar.com//img/98e5c8f0ee0a25549c502e46a3f165c9.png">

+3


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







All Articles