[Python-bugs-list] [ python-Bugs-538991 ] error in turtle.py - module

noreply@sourceforge.net noreply@sourceforge.net
Thu, 04 Apr 2002 02:58:34 -0800


Bugs item #538991, was opened at 2002-04-04 01:17
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=538991&group_id=5470

Category: Tkinter
Group: Python 2.2.1 candidate
Status: Closed
Resolution: Duplicate
Priority: 5
Submitted By: Gregor Lingl (glingl)
Assigned to: Nobody/Anonymous (nobody)
Summary: error in turtle.py - module

Initial Comment:
When trying to use the RawPen-class of turtle.py,
the following error occurs:

Python 2.2.1c2 (#33, Mar 26 2002, 13:04:18) [MSC 32 bit
(Intel)] on win32
Type "copyright", "credits" or "license" for more
information.
IDLE 0.8 -- press F1 for help
>>> from Tkinter import *
>>> import turtle
>>> root = Tk()
>>> c = Canvas(root)
>>> c.pack()
>>> t = turtle.RawPen(c)
Traceback (most recent call last):
  File "<pyshell#5>", line 1, in ?
    t = turtle.RawPen(c)
  File "C:\Python221c\lib\lib-tk\turtle.py", line 16,
in __init__
    self.reset()
  File "C:\Python221c\lib\lib-tk\turtle.py", line 42,
in reset
    self.clear()
  File "C:\Python221c\lib\lib-tk\turtle.py", line 53,
in clear
    self._draw_turtle()
  File "C:\Python221c\lib\lib-tk\turtle.py", line 262,
in _draw_turtle
    self._arrow = _canvas.create_line(x-dx,y+dy,x,y,
AttributeError: 'NoneType' object has no attribute
'create_line'
>>> 

This can be fixed - I suppose - by correcting  line 262:

    self._arrow = self._canvas.create_line(x-dx, ...etc.



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

>Comment By: Gregor Lingl (glingl)
Date: 2002-04-04 12:58

Message:
Logged In: YES 
user_id=505031

Cannot find patch #536117
When was it fixed?

In python2.2.1c2 it's definitely not fixed

Gregor Lingl

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

Comment By: Martin v. Löwis (loewis)
Date: 2002-04-04 09:07

Message:
Logged In: YES 
user_id=21627

This was fixed through patch #536117.

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

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