ui_controls.py
def cell_at_pos(self, x, y, boundry_checks=True):
        """ get col, row and specified position x, y
        """
        cell_col = (x - self._x) // self.cell_width
        cell_row = (y - self._y) // self.cell_height
        if boundry_checks and (cell_col<0 or cell_row<0 or cell_col>(self._cols-1) or cell_row>(self._rows-1)):
            return None
        return cell_col, cell_row
 get col, row and specified position x, y
        
get col, row and specified position x, y
get col row and specified position x y
def cell_at_pos(self, x, y, boundry_checks=True):
        cell_col = (x - self._x) // self.cell_width
        cell_row = (y - self._y) // self.cell_height
        if boundry_checks and (cell_col<0 or cell_row<0 or cell_col>(self._cols-1) or cell_row>(self._rows-1)):
            return None
        return cell_col, cell_row
def cell_at_pos ( self , x , y , boundry_checks = True ) : cell_col = ( x - self . _x ) // self . cell_width cell_row = ( y - self . _y ) // self . cell_height if boundry_checks and ( cell_col < 0 or cell_row < 0 or cell_col > ( self . _cols - 1 ) or cell_row > ( self . _rows - 1 ) ) : return None return cell_col , cell_row
get col, row and specified position x, y
get col row and specified position x y
""" get col, row and specified position x, y
        """
self
x
y
boundry_checks