Same as Misc.grid_location(): return the (column, row) of the cell that covers the pixel at x, y. location() is an alias of grid_location().
tkinter/Grid.location
Grid.location