문제

As far as GTK is concern, the tree created is like this:

The code for this tree is obtained from here.

What I want to achieve is this:

This is from Eclipse. Most programs have the lines for trees as well. Those lines are necessary for me as my program will have a large tree.

도움이 되었습니까?

해결책

You can enable these dashed lines with gtk_tree_view_set_enable_tree_lines. So, for Python you would simply call

treeview.set_enable_tree_lines(True)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top