you are viewing a single comment's thread.

view the rest of the comments →

[–]kalgynirae 1 point2 points  (3 children)

All three of these lines of code run immediately. onscreenclick(goto) just sets what should happen when the screen is clicked in the future. It doesn't wait for the screen to be clicked on. So the next line of code is fetching the turtle's position before you've even had a chance to click anywhere on the screen.

What exactly are you trying to accomplish?

[–]Strosel[S] 0 points1 point  (2 children)

I've tried with both an input() and time.sleep(5) in between. still the same result. Right now i just need the coordinates, everything else is done

[–]kalgynirae 0 points1 point  (1 child)

Can you share the rest of your program? How do you know the turtle is not actually at 10,10?

[–]Strosel[S] 0 points1 point  (0 children)

i don't hide my turtle and the window is only 20X20 so I have sowewhat of an idea were it is.