I am trying to get the coordinates of a mouse click in the turtle screen, but my code isn't working. I guess this is related to time but I tried to add a 5 seconds delay but it didn't help.
Here is my code:
def get_mouse_click_coor(x,y):
print [x,y]
turtle.onscreenclick(get_mouse_click_coor)
Please help me understand what is the problem with the code, thanks :)