pyface.tasks.traits_editor module

class pyface.tasks.traits_editor.TraitsEditor[source]

Bases: Editor

An Editor that displays a Traits UI View.

model = Instance(HasTraits)

The model object to view. If not specified, the editor is used instead.

ui = Instance("traitsui.ui.UI")

The UI object associated with the Traits view, if it has been constructed.

trait_context()[source]

Use the model object for the Traits UI context, if appropriate.

create(parent)[source]

Create and set the toolkit-specific contents of the editor.

destroy()[source]

Destroy the toolkit-specific control that represents the editor.