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.


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


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


Destroy the toolkit-specific control that represents the editor.