pyface.viewer.tree_label_provider module

Base class for all tree label providers.

class pyface.viewer.tree_label_provider.TreeLabelProvider[source]

Bases: pyface.viewer.label_provider.LabelProvider

Base class for all tree label providers.

By default an element has no label image, and ‘str’ is used to generate its label text.

set_text(viewer, element, text)[source]

Sets the text representation of a node.

Returns True if setting the text succeeded, otherwise False.

get_drag_value(viewer, element)[source]

Get the value that is dragged for an element.

By default the drag value is the element itself.

is_collapsible(viewer, element)[source]

Returns True is the element is collapsible, otherwise False.

is_expandable(viewer, node)[source]

Returns True is the node is expandanble, otherwise False.