Use forward() in the turtle module to draw horizontally from right to left, if the starting position's x and y coordinates are different from the origin, the line may not appear straight. But if the tk window is redrawn, for example minimized and then restored, the line will be properly displayed. The following code will reproduce this issue: # start from turtle import * from Tkinter import * color("maroon") up() goto(30, 30) down() left(180) forward(100) mainloop() # end I checked the source of the turtle module, but failed to figure out the reason. The attatchment contains a snapshot of what happens. My environment: Python version: 2.4.3 OS: Windows XP sp2 Video Card: Nvidia 6600 CPU: P4 2.66G Hz Mem: 1G
I cannot reproduce this on OSX. I have verified that the turtle position is correct (-70.00,30.00) after the steps reported by OP. This must be out of date.
History
Date
User
Action
Args
2022-04-11 14:56:19
admin
set
github: 43718
2010-10-19 17:36:54
belopolsky
set
status: open -> closednosy: + belopolskymessages: + resolution: out of datestage: test needed -> resolved