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

Method prepare_path_to_this_widget

editor/editor.py:664–674  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

662 return code_nested
663
664 def prepare_path_to_this_widget(self, node):
665 # here gets initiated to null list the path_to_this_widget chain
666 node.path_to_this_widget = []
667 for child in node.children.values():
668 if type(child) == str:
669 continue
670 if not issubclass(child.__class__, gui.Widget):
671 continue
672 if child.variable_name is None:
673 continue
674 self.prepare_path_to_this_widget(child)
675
676 def save(self, save_path_filename, configuration):
677

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected