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

Method append_instance

editor/editor_widgets.py:28–35  ·  view source on GitHub ↗
(self, instance, parent)

Source from the content-addressed store, hash-verified

26 super(InstancesTree, self).__init__(**kwargs)
27
28 def append_instance(self, instance, parent):
29 item = gui.TreeItem(instance.variable_name)
30 if parent == None:
31 parent = self
32 item.instance = instance
33 item.onclick.do(self.on_tree_item_selected, js_stop_propagation=True)
34 parent.append(item)
35 return item
36
37 def select_instance(self, node, instance):
38 if not hasattr(node, 'attributes'):

Callers 1

Calls 2

doMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected