envisage.ui.tasks.task_factory module

class envisage.ui.tasks.task_factory.TaskFactory[source]

Bases: HasTraits

A factory for creating a Task with some additional metadata.


Creates the Task.

The default implementation simply calls the ‘factory’ attribute.

create_with_extensions(extensions, **traits)[source]

Creates the Task using the specified TaskExtensions.

factory = Callable

A callable with the following signature:

callable(**traits) -> Task

Often this attribute will simply be a Task subclass.

id = Str

The task factory’s unique identifier. This ID is assigned to all tasks created by the factory.

name = Str

The task factory’s user-visible name.