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

Method image_width

SLiCAP/schematic/image_dialog.py:148–151  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

146 return self._path_edit.text().strip()
147
148 def image_width(self) -> int:
149 if self._natural_w:
150 return max(1, round(self._natural_w * self._scale_spin.value() / 100))
151 return 200
152
153 def image_height(self) -> int:
154 if self._natural_h:

Callers 2

_on_place_imageMethod · 0.95
mouseDoubleClickEventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected