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

Method _on_place_library

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

Source from the content-addressed store, hash-verified

284 )
285
286 def _on_place_library(self):
287 from PySide6.QtWidgets import QFileDialog
288 path, _ = QFileDialog.getOpenFileName(
289 self, "Select Library File", str(project.subdir("lib")),
290 "Library Files (*.lib *.spi *.sp);;All Files (*)",
291 )
292 if path:
293 self._scene.start_library_placement(path)
294
295 def _on_place_library_link(self):
296 from .library_link_dialog import LibraryLinkDialog

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected