Module Import alias Import alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotEq AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If CompareNotEq AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq NameLoad AttributeLoad NameLoad attr body Return Assign NameStore NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Raise Call NameLoad Str If CompareNotIn NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad NameLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad NameLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr While CompareNotEq NameLoad NameLoad body Expr Yield NameLoad Assign NameStore AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A sys N/A weakref collections deque pydispatch dispatcher TreeNode N/A object N/A N/A Base class for Tree branch objects.

    Supports a single parent.
    Can have 0-N children.
     N/A on_parent_changed on_parent_changed N/A on_child_added on_child_added N/A on_child_removed on_child_removed __init__ N/A N/A self N/A N/A N/A Creates a tree node object.
         N/A N/A N/A N/A super TreeNode self __init__ N/A N/A self _parent None N/A N/A self _children N/A set N/A add_child N/A N/A self node N/A N/A N/A Attaches a child to the node.

        .. note:: Dispatches an 'on_child_added' event.

        Raises:
            ValueError: Raised if the child
            already has a parent.
         N/A N/A N/A node parent None N/A N/A N/A ValueError Node has an existing parent N/A N/A N/A N/A self _children add node N/A N/A node parent self N/A N/A N/A dispatcher send N/A TreeNode on_child_added self node N/A remove_child N/A N/A self node N/A N/A N/A Removes a child from the node.

        .. note:: Dispatches an 'on_child_removed' event.

        Raises:
            KeyError: Raised if the node
            is not a child of the node.
         N/A N/A N/A N/A self _children remove node N/A N/A node parent None N/A N/A N/A dispatcher send N/A TreeNode on_child_removed self node N/A children N/A N/A self N/A N/A N/A N/A self _children N/A property parent N/A N/A self N/A N/A N/A The parent of the node or None if there isn't one.

        The parent value should **not** be changed manually.
        Instead use the 'remove_child' method on the parent.

        .. note::
            When the parent value is changed, the 'on_parent_changed'
            event will be dispatched.

        .. note ::
            This is an @property decorated method which allows
            retrieval and assignment of the scale value.

        Raises:
            ValueError: Raised is the node already has a parent.
            ValueError: Raised if the node is not a child of the
            new parent. This is handled internally.
         N/A N/A N/A self _parent None N/A N/A N/A N/A self _parent N/A None N/A property parent N/A N/A self parent N/A N/A N/A Sets the parent of the node.
        This should not be called manually.

        Raises:
            ValueError: Raised if the node already has a
            parent or if the node is not a child of the
            new parent.
         N/A N/A parent N/A self parent N/A N/A N/A new_parent None N/A parent N/A N/A new_parent N/A N/A weakref ref parent N/A N/A self parent N/A N/A N/A ValueError Node has an existing parent N/A N/A self N/A parent children N/A N/A N/A ValueError Node not child of parent N/A old_parent N/A self parent N/A N/A self _parent new_parent N/A N/A N/A dispatcher send N/A TreeNode on_parent_changed self old_parent parent N/A N/A parent setter dfs N/A N/A self N/A N/A N/A queue N/A deque N/A self N/A queue N/A N/A node N/A N/A queue pop N/A N/A hasattr node children N/A N/A N/A N/A queue extend N/A list N/A node _children N/A N/A node N/A bfs N/A N/A self N/A N/A N/A queue N/A deque N/A self N/A queue N/A N/A node N/A N/A queue pop N/A N/A hasattr node children N/A N/A N/A N/A queue extendleft N/A list N/A node _children N/A N/A node N/A predecessors N/A N/A self N/A N/A N/A parent N/A self parent N/A N/A parent None N/A N/A N/A parent N/A parent N/A parent parent N/A N/A