(self, x, y)
return 1 + y // self._font.height, 1 + x // self._font.width
Convert pixel position to text position.
Convert pixel position to text position.
Convert pixel position to text position .
def pixel_to_text_pos(self, x, y):
        """Convert pixel position to text position."""
        return 1 + y // self._font.height, 1 + x // self._font.width
def pixel_to_text_pos ( self , x , y ) : return 1 + y // self . _font . height , 1 + x // self . _font . width