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

Method _text_display_lines

SLiCAP/schematic/parameter_item.py:124–131  ·  view source on GitHub ↗

Display lines for text fallback: no curly braces, 'name = value' format.

(self)

Source from the content-addressed store, hash-verified

122 painter.restore()
123
124 def _text_display_lines(self) -> list:
125 """Display lines for text fallback: no curly braces, 'name = value' format."""
126 lines = ["Parameters"]
127 for name, value in self.params:
128 n = name.strip().strip("{}")
129 v = value.strip().strip("{}")
130 lines.append(f"{n} = {v}")
131 return lines
132
133 def _paint_text_fallback(self, painter: QPainter, r: QRectF) -> None:
134 lines = self._text_display_lines()

Callers 2

_natural_text_rectMethod · 0.95
_paint_text_fallbackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected