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.
You need to use the Screen class. However, if you want to stay away from OOP, you can use the built-in method turtle.onscreenclick(func).
turtle.onscreenclick(func)
Replace
def main(): t.onclick(getPos) t.mainloop() main()
with
def main(): t.onscreenclick(getPos) t.mainloop() main()