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

Method _on_new

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

Source from the content-addressed store, hash-verified

566 self._scene._library = lib
567
568 def _on_new(self):
569 self._scene.reset()
570 self._scene.clear_history()
571 self._current_path = None
572 project.set_current(None)
573 self._build_library() # back to system symbols only
574 import SLiCAP.schematic.config as _config
575 _config.load(None) # new doc → global style defaults
576 self._doc_props = DocumentProperties.new()
577 self._dirty = False
578 self.setWindowTitle("SLiCAP Schematic Capture")
579
580 def _on_open(self):
581 path, _ = QFileDialog.getOpenFileName(

Callers

nothing calls this directly

Calls 5

_build_libraryMethod · 0.95
resetMethod · 0.80
clear_historyMethod · 0.80
loadMethod · 0.80
newMethod · 0.80

Tested by

no test coverage detected