I am using a TreeEditor
to represent model objects in my traitsui application. I would like the ability select multiple objects in the tree editor by holding down Shift
or Ctrl
and performing selections. My ultimate goal is to provide a quick way for the user to delete multiple objects in one go rather than right-clicking each item individually.
From reading the source code for tree editor I noticed,
selection_mode = Enum('single', 'extended')
which appears to define an extended
selection mode. But I cannot find any example code which uses nor is it mentioned in the documentation of TreeEditor
.
Is this supported by traitsui?