(self, screen_x, screen_y)
return (data_x, data_y)
pixel to data coords
pixel to data coords
pixel to data coords
def pixel_to_data(self, screen_x, screen_y):
        """ pixel to data coords
        """
        if screen_x < 0:
            screen_x = 0

        top_gap = self._header_height + self._char_height + self._ver_spacing
        data_x = int(ceil(screen_x / self._char_width))
        data_y = int(
            ceil((screen_y - top_gap) /
                 (self._ver_spacing + self._char_height)))
        return (data_x, data_y)
def pixel_to_data ( self , screen_x , screen_y ) : if screen_x < 0 : screen_x = 0 top_gap = self . _header_height + self . _char_height + self . _ver_spacing data_x = int ( ceil ( screen_x / self . _char_width ) ) data_y = int ( ceil ( ( screen_y - top_gap ) / ( self . _ver_spacing + self . _char_height ) ) ) return ( data_x , data_y )