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

Method shape

SLiCAP/schematic/image_item.py:118–121  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

116 return QRectF(0, 0, self.display_width, self.display_height)
117
118 def shape(self) -> QPainterPath:
119 path = QPainterPath()
120 path.addRect(self.boundingRect())
121 return path
122
123 def paint(self, painter: QPainter, option, widget=None) -> None:
124 r = self.boundingRect()

Callers

nothing calls this directly

Calls 1

boundingRectMethod · 0.95

Tested by

no test coverage detected