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

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.

Code: Select all
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
duxbuz
 
Posts: 9
Joined: Sat Jan 11, 2014 8:37 am

Return to General Coding Help

Who is online

Users browsing this forum: No registered users and 2 guests