MCPcopy Create free account
hub / github.com/SLiCAP/SLiCAP_python / _on_symbol_selected

Method _on_symbol_selected

SLiCAP/schematic/window.py:537–540  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

535 self._on_place_component(pre_select=last)
536
537 def _on_symbol_selected(self, name: str):
538 svg = self._library.svg_bytes(name)
539 if svg is not None:
540 self._scene.start_placement(name, svg)
541
542 def _make_library(self, overlay_path=None) -> SymbolLibrary:
543 """Construct a symbol library (system symbols, optionally overlaid by a

Callers 1

_on_place_componentMethod · 0.95

Calls 2

start_placementMethod · 0.80
svg_bytesMethod · 0.45

Tested by

no test coverage detected