pyface.tasks.traits_dock_pane module

class pyface.tasks.traits_dock_pane.TraitsDockPane[source]

Bases: pyface.ui.qt4.tasks.dock_pane.DockPane

A DockPane that displays a Traits UI View.

model = Instance(HasTraits)

The model object to view. If not specified, the pane 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.

destroy()[source]

Destroy the toolkit-specific control that represents the pane.

create_contents(parent)[source]

Create and return the toolkit-specific contents of the dock pane.