pyface.tasks.action.task_action_controller module

class pyface.tasks.action.task_action_controller.TaskActionController[source]

Bases: ActionController

An action controller for menu and tool bars.

The controller is used to ‘hook’ the invocation of every action on the menu and tool bars. This is done so that additional, Task-specific information can be added to action events. Currently, we attach a reference to the Task.

task = Instance(Task)

The task that this is the controller for.

perform(action, event)[source]

Control an action invocation.


Called when an action item is added to a menu/menubar.


Called when an action item is added to a toolbar.