Coordinates TK and Turtle
duxbuz at gmail.com
duxbuz at gmail.com
Tue Jan 28 04:32:54 EST 2014
Hello
I have some weird results when I run my code which is meant to display a canvas and a turtle and some text with the turtles coordinates.
Basically the turtle coordinates do not seem to correspond with the TK create_text coordinates.
t1.goto(100,100)
canvas_id = cv1.create_text(t1.xcor(), t1.ycor(), font=("Purisa",12),anchor="nw")
cv1.insert(canvas_id, 0, t1.pos())
I end up with this output:
http://i1025.photobucket.com/albums/y319/duxbuz/coord-issues_zps1fca6d2b.jpg
Could anyone help please?
Thanks
More information about the Python-list
mailing list