tasks Package

advanced_editor_area_pane Module

api Module

dock_pane Module

editor Module

editor_area_pane Module

enaml_dock_pane Module

enaml_editor Module

enaml_task_pane Module

i_advanced_editor_area_pane Module

i_dock_pane Module

i_editor Module

i_editor_area_pane Module

i_task_pane Module

i_task_window_backend Module

task Module

task_layout Module

task_pane Module

task_window Module

task_window_backend Module

task_window_layout Module

topological_sort Module

pyface.tasks.topological_sort.before_after_sort(items)

Sort a sequence of items with ‘before’, ‘after’, and ‘id’ attributes.

The sort is topological. If an item does not specify a ‘before’ or ‘after’, it is placed after the preceding item.

If a cycle is found in the dependecies, a warning is logged and the order of the items is undefined.

pyface.tasks.topological_sort.topological_sort(pairs)

Topologically sort a list of (parent, child) pairs.

Returns a tuple containing the list of elements sorted in dependency order (parent to child order), if possible, and a boolean indicating whether the graph contains cycles.

A simple algorithm due to Kahn, in which vertices are chosen from the graph in the same order as the eventual topological sort, is used.

Note that this implementation is stable in the following sense: if we have the input list [..., (parent, child1), ..., (parent, child2), ...], then child1 will be before child2 in the output list (if there there is no additional dependency forcing another ordering).

traits_dock_pane Module

traits_editor Module

traits_task_pane Module