(self)
Get scale factors from logical to window size.
Get scale factors from logical to window size.
Get scale factors from logical to window size .
def _calculate_scale(self):
        """Get scale factors from logical to window size."""
        border_x, border_y = self._border_shift_logical
        self._scale = (
            self._window_size[0] / (self._canvas_logical[0] + 2.0*border_x),
            self._window_size[1] / (self._canvas_logical[1] + 2.0*border_y)
        )
def _calculate_scale ( self ) : border_x , border_y = self . _border_shift_logical self . _scale = ( self . _window_size [ 0 ] / ( self . _canvas_logical [ 0 ] + 2.0 * border_x ) , self . _window_size [ 1 ] / ( self . _canvas_logical [ 1 ] + 2.0 * border_y ) )