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

Method __init__

SLiCAP/schematic/wire_item.py:44–53  ·  view source on GitHub ↗
(self, parent: "WireItem")

Source from the content-addressed store, hash-verified

42 """
43
44 def __init__(self, parent: "WireItem"):
45 super().__init__(parent)
46 self.setFont(NET_LABEL_FONT)
47 self.setBrush(QBrush(NET_LABEL_COLOR))
48 self.setPen(QPen(Qt.NoPen))
49 self.setFlag(QGraphicsItem.ItemIsMovable)
50 self.setFlag(QGraphicsItem.ItemIsSelectable) # selectable independently
51 self.setFlag(QGraphicsItem.ItemSendsGeometryChanges)
52 self.setAcceptedMouseButtons(Qt.LeftButton)
53 self.setZValue(Z_NET_LABEL)
54
55 def shape(self) -> QPainterPath:
56 # Pad the clickable area beyond the tight glyph bounds so a short net

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected