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

Method _on_place_border

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

Source from the content-addressed store, hash-verified

268 # ── actions ───────────────────────────────────────────────────────────────
269
270 def _on_place_border(self):
271 from .border_dialog import BorderDialog
272 from .border_item import BorderItem
273 w, h, show = 400, 300, True
274 for item in self._scene.items():
275 if isinstance(item, BorderItem):
276 w = int(item.rect().width())
277 h = int(item.rect().height())
278 show = item.show_in_export
279 break
280 dlg = BorderDialog(width=w, height=h, show_in_export=show, parent=self)
281 if dlg.exec():
282 self._scene.start_border_placement(
283 dlg.border_width(), dlg.border_height(), dlg.show_in_export()
284 )
285
286 def _on_place_library(self):
287 from PySide6.QtWidgets import QFileDialog

Callers

nothing calls this directly

Calls 5

border_widthMethod · 0.95
border_heightMethod · 0.95
show_in_exportMethod · 0.95
BorderDialogClass · 0.85

Tested by

no test coverage detected