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

Bases: Editor

An editor that creates an embedded Traits UI.

dispose()[source]

Disposes of the contents of an editor.

editor_ui = Instance(UI)

The Traits UI created by the editor

get_error_control()[source]

Returns the editor’s control for indicating error status.

init(parent)[source]

Finishes initializing the editor by creating the underlying toolkit widget.

init_ui(parent)[source]

Creates the traits UI for the editor.

restore_prefs(prefs)[source]

Restores any saved user preference information associated with the editor.

save_prefs()[source]

Returns any user preference information associated with the editor.

update_editor()[source]

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