pyface.workbench.traits_ui_view module

A view whose content is provided by a traits UI.

class pyface.workbench.traits_ui_view.TraitsUIView[source]

Bases: pyface.ui.qt4.workbench.view.View

A view 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 view’s ‘model’. If you want more control over the creation of the traits UI then override!