(self)
return x, y
Get the midpoint of the current graphics view, in viewpoint coordinates.
Get the midpoint of the current graphics view, in viewpoint coordinates.
Get the midpoint of the current graphics view in viewpoint coordinates .
def get_mid(self):
        """Get the midpoint of the current graphics view, in viewpoint coordinates."""
        x0, y0, x1, y1 = self.get_bounds()
        # +1 to match GW-BASIC
        x, y = (x1-x0) // 2 + 1, (y1-y0) // 2 + 1
        if self._absolute:
            return x0 + x, y0 + y
        return x, y
def get_mid ( self ) : x0 , y0 , x1 , y1 = self . get_bounds ( ) # +1 to match GW-BASIC x , y = ( x1 - x0 ) // 2 + 1 , ( y1 - y0 ) // 2 + 1 if self . _absolute : return x0 + x , y0 + y return x , y