pyface.viewer.default_tree_content_provider module

The default tree content provider.

class pyface.viewer.default_tree_content_provider.DefaultTreeContentProvider[source]

Bases: TreeContentProvider

The default tree content provider.

get_parent(item)[source]

Returns the parent of an item.

get_children(item)[source]

Returns the children of an item.

has_children(item)[source]

True iff the item has children.

append(parent, child)[source]

Appends ‘child’ to the ‘parent’ item.

insert_before(parent, before, child)[source]

Inserts ‘child’ into ‘parent’ item before ‘before’.

insert(parent, index, child)[source]

Inserts ‘child’ into the ‘parent’ item at ‘index’.

remove(parent, child)[source]

Removes ‘child’ from the ‘parent’ item.