Generates a file containing definitions for editors defined in the various backends.
- Generates a file containing definitions for editors defined in the
- various backends.
The idea is that if a new editor has been declared in any of the backends, the author needs to create a file called ‘<myeditor>_definition’ in the Traits package (in traitsui). This function will be run each time the user runs the setup.py file, and the new editor’s definition will be appended to the editors.py file.
The structure of the <myeditor>_definition file should be as follows:
myeditor_definition = '<file name in the backend package>: <name of the Editor or the EditorFactory class'