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

Method shape

SLiCAP/schematic/parameter_item.py:77–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75 return self._natural_text_rect()
76
77 def shape(self) -> QPainterPath:
78 path = QPainterPath()
79 path.addRect(self.boundingRect())
80 return path
81
82 def _natural_text_rect(self) -> QRectF:
83 """Bounding rect sized to the text content (used when there is no renderer)."""

Callers

nothing calls this directly

Calls 1

boundingRectMethod · 0.95

Tested by

no test coverage detected