Return the (column, row) of the grid cell that contains the pixel at position (x, y), given in pixels relative to this container. For locations above or to the left of the grid, -1 is returned for the corresponding coordinate.
tkinter/Misc.grid_location
Misc.grid_location