pyface.tasks.i_task_window_backend module

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

Bases: traits.has_traits.Interface

The TaskWindow layout interface.

TaskWindow delegates to an ITaskWindowBackend object for toolkit-specific layout functionality.

control = Any()

The root control of the TaskWindow to which the layout belongs.

window = Instance("pyface.tasks.task_window.TaskWindow")

The TaskWindow to which the layout belongs.

create_contents(parent)[source]

Create and return the TaskWindow’s contents. (See IWindow.)

destroy()[source]

Destroy the backend.

Note that TaskWindow will destroy the widget created in create_contents, but this method may be used to perform additional cleanup.

hide_task(state)[source]

Assuming the specified TaskState is active, hide its controls.

show_task(state)[source]

Assuming no task is currently active, show the controls of the specified TaskState.

get_layout()[source]

Returns a TaskLayout for the current state of the window.

set_layout(layout)[source]

Applies a TaskLayout (which should be suitable for the active task) to the window.

class pyface.tasks.i_task_window_backend.MTaskWindowBackend[source]

Bases: traits.has_traits.HasTraits

Mixin containing common coe for toolkit-specific implementations.

create_contents(parent)[source]
destroy()[source]
hide_task(state)[source]
show_task(state)[source]
get_layout()[source]
set_layout(layout)[source]