pyface.tasks.action.task_toggle_group module

class pyface.tasks.action.task_toggle_group.TaskToggleAction[source]

Bases: pyface.action.action.Action

An action for activating a task.

name = Property(Str, observe="")

The user-visible name of the action, matches the task name.

style = "toggle"

The action is a toggle menu item.

tooltip = Property(Str, observe="name")

The tooltip to display for the menu item.

task = Instance(Task)

The Task with which the action is associated.


Called when the action is no longer required.

By default this method does nothing, but this would be a great place to unhook trait listeners etc.


Performs the action.


event (ActionEvent instance) – The event which triggered the action.

class pyface.tasks.action.task_toggle_group.TaskToggleGroup(*items, **traits)[source]


A menu for changing the active task in a task window.

manager = Any()

The ActionManager to which the group belongs.

window = Instance(TaskWindow)

The window that contains the group.