MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / _on_rename_components

Method _on_rename_components

SLiCAP/schematic/window.py:393–400  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

391 )
392
393 def _on_rename_components(self):
394 from .tools import rename_left_right_top_bottom
395 self._scene._push_undo()
396 n = rename_left_right_top_bottom(self._scene)
397 if n == 0:
398 self._scene._undo_stack.pop() # nothing changed, discard the snapshot
399 msg = f"{n} component{'s' if n != 1 else ''} renamed." if n else "All components already numbered correctly."
400 QMessageBox.information(self, "Rename Components", msg)
401
402 def _on_reload_symbols(self):
403 """Refresh the selected symbols with the most recent library definitions.

Callers

nothing calls this directly

Calls 2

_push_undoMethod · 0.80

Tested by

no test coverage detected