labapi.tree.mixins.HasNameMixin#
- class labapi.tree.mixins.HasNameMixin(name: str)[source]#
Bases:
objectA mixin class that provides a name attribute for tree nodes.
Classes inheriting from this mixin are expected to have a _name instance variable.
- __init__(name: str)[source]#
Initialize the mixin with a node name.
- Parameters:
name – The name of the tree node.
Methods
__init__(name)Initialize the mixin with a node name.
Attributes
Return the tree node name.