Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
就 GTK 而言,创建的树是这样的:
这棵树的代码是从这里获得的。
我想要实现的是:
这是来自 Eclipse。大多数程序也有树的线条。这些行对我来说是必要的,因为我的程序将有一棵大树。
您可以使用gtk_tree_view_set_enable_tree_lines启用这些虚线。因此,对于 Python,您只需调用
treeview.set_enable_tree_lines(True)