pyface.workbench.editor_manager module

The default editor manager.

class pyface.workbench.editor_manager.EditorManager(**traits)[source]

Bases: traits.has_traits.HasTraits

The default editor manager.

add_editor(editor, kind)[source]

Registers an existing editor.

create_editor(window, obj, kind)[source]

Create an editor for an object.

get_editor(window, obj, kind)[source]

Get the editor that is currently editing an object.

get_editor_kind(editor)[source]

Return the ‘kind’ associated with ‘editor’.

get_editor_memento(editor)[source]

Return the state of an editor suitable for pickling etc.

By default we don’t save the state of editors.

set_editor_memento(memento)[source]

Restore the state of an editor from a memento.

By default we don’t try to restore the state of editors.