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

Function widthChanged

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

Source from the content-addressed store, hash-verified

15
16# 不用修改源码,重加载,解决右键保存图片异常
17def widthChanged(self):
18 sr = self.getSourceRect()
19 ar = float(sr.height()) / sr.width()
20 self.params.param('height').setValue(int(self.params['width'] * ar), blockSignal=self.heightChanged)
21
22
23def heightChanged(self):

Callers

nothing calls this directly

Calls 3

setValueMethod · 0.80
heightMethod · 0.45
widthMethod · 0.45

Tested by

no test coverage detected