MCPcopy Index your code
hub / github.com/PyQt5/PyQt / heightChanged

Function heightChanged

PyQtGraph/tools.py:23–26  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21
22
23def heightChanged(self):
24 sr = self.getSourceRect()
25 ar = float(sr.width()) / sr.height()
26 self.params.param('width').setValue(int(self.params['height'] * ar), blockSignal=self.widthChanged)
27
28
29def New__init__(self, item):

Callers

nothing calls this directly

Calls 3

setValueMethod · 0.80
widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected