(self)
| 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, |
nothing calls this directly
no test coverage detected