def setPreserveAspectRatio(self, preserve):
        self._preserve_aspect_ratio = preserve
        self.update()
Set whether or not to preserve the image aspect ratio.
dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/qt_image_view.py/QImageView.setPreserveAspectRatio