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

Method _place_label

SLiCAP/schematic/wire_item.py:148–154  ·  view source on GitHub ↗

Position the label at points[0] + label_offset.

(self)

Source from the content-addressed store, hash-verified

146 self._net_label.setVisible(False)
147
148 def _place_label(self) -> None:
149 """Position the label at points[0] + label_offset."""
150 if self._net_label is None or not self.points:
151 return
152 ref = self.points[0]
153 self._net_label.setPos(ref.x() + self.label_offset.x(),
154 ref.y() + self.label_offset.y())
155
156 # ── bounding rect ─────────────────────────────────────────────────────────
157

Callers 2

update_labelMethod · 0.95
_rebuildMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected