pyface.tasks.action.task_action_manager_builder module

class pyface.tasks.action.task_action_manager_builder.TaskActionManagerBuilder[source]

Bases: ActionManagerBuilder

ActionManagerBuilder for Tasks.

This provides some additional convenience methods for extracting schema information from a task and using it to build menu bar and toolbar managers directly.

task = Instance(Task)

The Task to build menubars and toolbars for.

additions = Property(List(SchemaAddition), observe='task.extra_actions')

The schema additions provided by the Task.

create_menu_bar_manager()[source]

Create a menu bar manager from the task’s menu bar schema and additions.

create_tool_bar_managers()[source]

Create tool bar managers from the tasks’s tool bar schemas and additions.