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

Method start_command_placement

SLiCAP/schematic/canvas.py:596–606  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

594 self.placing_started.emit()
595
596 def start_command_placement(self):
597 self._end_wire(commit=False)
598 self._cancel_placement()
599 ghost = QGraphicsSimpleTextItem(".command")
600 ghost.setOpacity(0.4)
601 ghost.setAcceptedMouseButtons(Qt.NoButton)
602 self._ghost = ghost
603 self._ghost.setPos(QPointF(-9999, -9999))
604 self.addItem(self._ghost)
605 self._mode = _Mode.PLACING_COMMAND
606 self.placing_started.emit()
607
608 def start_border_placement(self, width: int, height: int, show_in_export: bool):
609 self._end_wire(commit=False)

Callers

nothing calls this directly

Calls 2

_end_wireMethod · 0.95
_cancel_placementMethod · 0.95

Tested by

no test coverage detected