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

Method select_instance

editor/editor_widgets.py:37–48  ·  view source on GitHub ↗
(self, node, instance)

Source from the content-addressed store, hash-verified

35 return item
36
37 def select_instance(self, node, instance):
38 if not hasattr(node, 'attributes'):
39 return
40 if node.identifier != self.identifier:
41 if hasattr(node, 'instance'):
42 if node.instance.identifier == instance.identifier:
43 node.style['background-color'] = 'lightblue'
44 else:
45 node.style['background-color'] = 'white'
46 node.attributes['treeopen'] = 'true'
47 for item in node.children.values():
48 self.select_instance(item, instance)
49
50 @gui.decorate_event
51 def on_tree_item_selected(self, emitter):

Callers 3

on_tree_item_selectedMethod · 0.95
updateMethod · 0.80
selectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected