traitsui.ui_editor module

Defines the BasicUIEditor class, which allows creating editors that define their function by creating an embedded Traits UI.

class traitsui.ui_editor.UIEditor(parent, **traits)

Bases: traitsui.editor.Editor

An editor that creates an embedded Traits UI.

dispose()

Disposes of the contents of an editor.

editor_ui = Instance(UI)

The Traits UI created by the editor

get_error_control()

Returns the editor’s control for indicating error status.

init(parent)

Finishes initializing the editor by creating the underlying toolkit widget.

init_ui(parent)

Creates the traits UI for the editor.

restore_prefs(prefs)

Restores any saved user preference information associated with the editor.

save_prefs()

Returns any user preference information associated with the editor.

update_editor()

Updates the editor when the object trait changes external to the editor.