MCPcopy Index your code
hub / github.com/rawpython/remi / append_instances_from_tree

Method append_instances_from_tree

editor/editor_widgets.py:55–62  ·  view source on GitHub ↗
(self, node, parent=None)

Source from the content-addressed store, hash-verified

53 return (emitter.instance,)
54
55 def append_instances_from_tree(self, node, parent=None):
56 if not hasattr(node, 'attributes'):
57 return
58 if not (hasattr(node, 'variable_name') and not node.variable_name is None):
59 return
60 nodeTreeItem = self.append_instance(node, parent)
61 for child in node.children.values():
62 self.append_instances_from_tree(child, nodeTreeItem)
63
64
65class InstancesWidget(gui.VBox):

Callers 1

updateMethod · 0.80

Calls 1

append_instanceMethod · 0.95

Tested by

no test coverage detected