pyface.workbench.i_editor_manager module

The editor manager interface.

class pyface.workbench.i_editor_manager.IEditorManager(adaptee, default=<class 'traits.adaptation.adaptation_error.AdaptationError'>)[source]

Bases: Interface

The editor manager interface.

add_editor(editor, kind)[source]

Registers an existing editor.

create_editor(window, obj, kind)[source]

Create an editor for an object.

‘kind’ optionally contains any data required by the specific editor manager implementation to decide what type of editor to create.

Returns None if no editor can be created for the resource.

get_editor(window, obj, kind)[source]

Get the editor that is currently editing an object.

‘kind’ optionally contains any data required by the specific editor manager implementation to decide what type of editor to create.

Returns None if no such editor exists.

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.

set_editor_memento(memento)[source]

Restore an editor from a memento and return it.