This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: forward in turtle module may cause incorrect display
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 2.6
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: BreamoreBoy, ajaksu2, belopolsky, naturemage
Priority: low Keywords:

Created on 2006-07-25 12:52 by naturemage, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
forward.JPG naturemage, 2006-07-25 12:52 forward display
Messages (4)
msg29277 - (view) Author: NatureMage (naturemage) Date: 2006-07-25 12:52
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
msg84500 - (view) Author: Daniel Diniz (ajaksu2) * (Python triager) Date: 2009-03-30 04:35
Cannot confirm on Linux/trunk.
msg114808 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2010-08-24 19:49
I can't reproduce this with 3.1 on Windows Vista so can this be closed?
msg119147 - (view) Author: Alexander Belopolsky (belopolsky) * (Python committer) Date: 2010-10-19 17:36
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:19adminsetgithub: 43718
2010-10-19 17:36:54belopolskysetstatus: open -> closed

nosy: + belopolsky
messages: + msg119147

resolution: out of date
stage: test needed -> resolved
2010-08-24 19:49:31BreamoreBoysetnosy: + BreamoreBoy
messages: + msg114808
2009-03-30 04:35:30ajaksu2setpriority: normal -> low

type: behavior
versions: + Python 2.6, - Python 2.4
nosy: + ajaksu2

messages: + msg84500
stage: test needed
2006-07-25 12:52:08naturemagecreate