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

Method _on_place_model_definition

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

Source from the content-addressed store, hash-verified

301 )
302
303 def _on_place_model_definition(self):
304 from .model_dialog import ModelDialog
305 dlg = ModelDialog(parent=self)
306 if dlg.exec() and dlg.model_name() and dlg.model_type():
307 self._scene.start_model_placement(
308 dlg.model_name(), dlg.model_type(),
309 dlg.simulator(), dlg.get_params(),
310 dlg.preamble_path(),
311 dlg.display_width(), dlg.display_height(),
312 )
313
314 def _on_place_subcircuit(self):
315 """Place a subcircuit (.lib) as an X block: generate a default symbol,

Callers

nothing calls this directly

Calls 9

model_nameMethod · 0.95
model_typeMethod · 0.95
simulatorMethod · 0.95
get_paramsMethod · 0.95
preamble_pathMethod · 0.95
display_widthMethod · 0.95
display_heightMethod · 0.95
ModelDialogClass · 0.85
start_model_placementMethod · 0.80

Tested by

no test coverage detected