(self, factor: float)
Set the zoom level `factor`

        Parameters
        ----------
        factor:
            Zoom level where 100 is default 50 is half the size and 200 is
            twice the size
Set the zoom level `factor`
Set the zoom level factor
def setZoomFactor(self, factor: float) -> None:
        """
        Set the zoom level `factor`

        Parameters
        ----------
        factor:
            Zoom level where 100 is default 50 is half the size and 200 is
            twice the size
        """
        if self.__zoomFactor != factor or self.__fitInView:
            self.__fitInView = False
            self._actions.fit.setChecked(False)
            self.__zoomFactor = factor
            self.setTransform(
                QTransform.fromScale(*(self.__zoomFactor / 100,) * 2)
            )
            self._actions.zoomout.setEnabled(factor >= 20)
            self._actions.zoomin.setEnabled(factor <= 300)
            self.zoomFactorChanged.emit(factor)
            if self.__widgetResizable:
                self._resizeToFit()
def setZoomFactor ( self , factor : float ) -> None : if self . __zoomFactor != factor or self . __fitInView : self . __fitInView = False self . _actions . fit . setChecked ( False ) self . __zoomFactor = factor self . setTransform ( QTransform . fromScale ( * ( self . __zoomFactor / 100 , ) * 2 ) ) self . _actions . zoomout . setEnabled ( factor >= 20 ) self . _actions . zoomin . setEnabled ( factor <= 300 ) self . zoomFactorChanged . emit ( factor ) if self . __widgetResizable : self . _resizeToFit ( )