def create_editor(self, window, obj, kind):

        editor = TraitsUIEditor(window=window, obj=obj)

        self.add_editor(editor, kind)

        return editor
Create an editor for an object.
dataset/ETHPy150Open enthought/pyface/pyface/workbench/editor_manager.py/EditorManager.create_editor