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)[source]

Bases: EditorFactory

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

custom_editor(ui, object, name, description, parent)[source]

Generates an editor using the “custom” style.

readonly_editor(ui, object, name, description, parent)[source]

Generates an “editor” that is read-only.

simple_editor(ui, object, name, description, parent)[source]

Generates an editor using the “simple” style.

text_editor(ui, object, name, description, parent)[source]

Generates an editor using the “text” style.