pyface.tasks.i_task_pane module

class pyface.tasks.i_task_pane.ITaskPane(adaptee, default=<class 'traits.adaptation.adaptation_error.AdaptationError'>)[source]

Bases: traits.has_traits.Interface

The base interface for all panes (central and dock) in a Task.

id = Str()

The pane’s identifier, unique within a Task.

name = Str()

The pane’s user-visible name.

control = Any()

The toolkit-specific control that represents the pane.

has_focus = Bool()

Does the pane currently have focus?

task = Instance(Task)

The task with which the pane is associated. Set by the framework.

create(parent)[source]

Create and set the toolkit-specific control that represents the pane.

destroy()[source]

Destroy the toolkit-specific control that represents the pane.

set_focus()[source]

Gives focus to the control that represents the pane.

class pyface.tasks.i_task_pane.MTaskPane[source]

Bases: traits.has_traits.HasTraits

Mixin containing common code for toolkit-specific implementations.