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

Method shape

SLiCAP/schematic/wire_item.py:55–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
57 # name is an easy target (the default shape is hard to hit).
58 path = QPainterPath()
59 path.addRect(self.boundingRect().adjusted(-3, -2, 3, 2))
60 return path
61
62 def mousePressEvent(self, event):
63 w = self.parentItem()

Callers

nothing calls this directly

Calls 1

boundingRectMethod · 0.45

Tested by

no test coverage detected