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

Method __init__

SLiCAP/schematic/wire_item.py:120–133  ·  view source on GitHub ↗
(self, points: list[QPointF])

Source from the content-addressed store, hash-verified

118 """
119
120 def __init__(self, points: list[QPointF]):
121 super().__init__()
122 self.points: list[QPointF] = list(points)
123 self.net_name: str | None = None
124 self.display_name: bool = False
125 self.label_offset: QPointF = QPointF(0.0, -_NET_LABEL_OFFSET)
126 self.net_locked: bool = False # True when name is imposed by a port
127 self._user_net_name: str | None = None # name saved before port override
128 self._net_label: _NetLabel | None = None
129 self._label_active: bool = False
130 self.setPen(QPen(WIRE_COLOR, WIRE_WIDTH))
131 self.setZValue(Z_WIRE)
132 self.setFlag(QGraphicsItem.ItemIsSelectable)
133 self._rebuild()
134
135 # ── net label ─────────────────────────────────────────────────────────────
136

Callers 1

__init__Method · 0.45

Calls 1

_rebuildMethod · 0.95

Tested by

no test coverage detected