I am trying to use traitsui.api.ValueEditor to create a tree view for a dictionary:
class my_editor(HasTraits):
x = Any
traits_view = View(Item('x', editor = ValueEditor()))
a = my_editor(x = my_dict)
a.configure_traits()
And the output looks like:
And I would like to hide the items '_listener_traits', '_sync_trait_' and '_traits_listener_', which start as underscore character _. In this way the tree viewer will only display d, designator, mat_name, material, modeltree and name.
After looking up the source code of ValueEditor, I guess editing the TreeEditor, RootNode or value_tree_nodes might customize which traits to be viewed? Is this the right way and which should I edit specifically to customize the ValueEditor?