pyface.workbench.traits_ui_editor module

An editor whose content is provided by a traits UI.

class pyface.workbench.traits_ui_editor.TraitsUIEditor[source]

Bases: Editor

An editor whose content is provided by a traits UI.

create_control(parent)[source]

Creates the toolkit-specific control that represents the editor.

‘parent’ is the toolkit-specific control that is the editor’s parent.

Overridden to call ‘create_ui’ to get the traits UI.

destroy_control()[source]

Destroys the toolkit-specific control that represents the editor.

Overridden to call ‘dispose’ on the traits UI.

create_ui(parent)[source]

Creates the traits UI that represents the editor.

By default it calls ‘edit_traits’ on the editor’s ‘obj’. If you want more control over the creation of the traits UI then override!