Coordinates TK and Turtle

This is the place for queries that don't fit in any of the other categories.

Coordinates TK and Turtle

Postby duxbuz » Mon Jan 27, 2014 2:14 pm


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.

Code: Select all

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:

Could anyone help please?

Posts: 9
Joined: Sat Jan 11, 2014 8:37 am

Return to General Coding Help

Who is online

Users browsing this forum: Google [Bot] and 4 guests