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

Method _on_open

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

Source from the content-addressed store, hash-verified

578 self.setWindowTitle("SLiCAP Schematic Capture")
579
580 def _on_open(self):
581 path, _ = QFileDialog.getOpenFileName(
582 self, "Open Schematic", str(project.subdir("sch")), _FILE_FILTER
583 )
584 if path:
585 self._load_file(Path(path))
586
587 def _load_file(self, path: Path) -> bool:
588 """Load a schematic file into this window. Returns True on success.

Callers

nothing calls this directly

Calls 1

_load_fileMethod · 0.95

Tested by

no test coverage detected