So here is my problem, I have to make a picture for my CS class and it is really frustrating estimating in turtle. I planed to use .onclick() to show me to position.
import turtle as t
def getPos(x,y):
print("(", x, "," ,y,")")
return
def main():
t.onclick(getPos)
t.mainloop()
main()
The turtle documentation seems to say that the onclick will pass the coordinates in a function that takes in two variables.
http://docs.python.org/3.1/library/turtle.html#turtle.onclick
NOTE: It works when I click on the arrow head, but thats not what I want. I want to click some other position on the screen to find out what coordinates I should send the arrow head to!
Any help would be appreciated.