[Python-bugs-list] [ python-Bugs-612595 ] 2 bugs in turtle.py

noreply@sourceforge.net noreply@sourceforge.net
Sun, 22 Sep 2002 06:02:27 -0700


Bugs item #612595, was opened at 2002-09-21 20:42
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=612595&group_id=5470

Category: Python Library
Group: Python 2.2.1
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Gregor Lingl (glingl)
Assigned to: Martin v. Löwis (loewis)
Summary: 2 bugs in turtle.py

Initial Comment:
Module: turtle

Bug nr. 1: 
   Phenomenology: The first pen constructed with Pen()
   has a different origin than all the next ones.
   
   Reason: Twofold. First, packing seems not to be
performed
   in time, so canvas.winfo_width() / height() do not 
   return the correct values.
   Second, canvas['width'] differs from
canvas.winfo_width()
   by 4. The same is the case with height. 
   
   Remedy (suggestions): 
   - call canvas.update() before calculation RawPen's
origin
   - in "emergency"-case set width to canvas["width"] + 4  
     (same with height)
     (Don't know if this value of 4 results from some inset
      or what ever ...)
    
Bug nr. 2:
   Phenomenology:
   circle doesn't update turtle-position (in case
tracer is on).
   Reason (and suggested remedy):     
   - self._draw_turtle() is missing at the end of
circle's code
   
 

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2002-09-22 15:02

Message:
Logged In: YES 
user_id=21627

Thanks for your report. Implemented as suggested, in
turtle.py 1.7 and 1.5.16.2.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=612595&group_id=5470