pyface.viewer.tree_label_provider module¶
Base class for all tree label providers.
- class pyface.viewer.tree_label_provider.TreeLabelProvider[source]¶
Bases:
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.