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.


Return the ‘kind’ associated with ‘editor’.


Return the state of an editor suitable for pickling etc.

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


Restore the state of an editor from a memento.

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