traitsui.editors.default_override module

Editor factory that overrides certain attributes of the default editor.

For example, the default editor for Range(low=0, high=1500) has ‘1500’ as the upper label. To change it to ‘Max’ instead, use

my_range = Range(low=0, high=1500,
editor=DefaultOverride(high_label=’Max’))

Alternatively, the override can also be specified in the view:

View(Item(‘my_range’, editor=DefaultOverride(high_label=’Max’))

class traitsui.editors.default_override.DefaultOverride(*args, **overrides)

Bases: traitsui.editor_factory.EditorFactory

Editor factory for selectively overriding certain parameters of the default editor.

custom_editor(ui, object, name, description, parent)
readonly_editor(ui, object, name, description, parent)
simple_editor(ui, object, name, description, parent)
text_editor(ui, object, name, description, parent)

Previous topic

traitsui.editors.date_editor module

Next topic

traitsui.editors.directory_editor module

This Page