[Tutor] Coordinates TK and Turtle

Ian D duxbuz at hotmail.com
Tue Jan 28 10:48:30 CET 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  		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140128/e612afe5/attachment.html>


More information about the Tutor mailing list