[New-bugs-announce] [issue22168] Turtle Graphics RawTurtle problem

Kent D. Lee report at bugs.python.org
Fri Aug 8 03:27:43 CEST 2014


New submission from Kent D. Lee:

This is either a turtle graphics or tkinter problem. 

In Python 3.4 it appears that something in Turtle Graphics broke or at least changed. I get the following error when trying to run a program that works in Python 3.1 and 3.2.

Kent's Mac> python3.4 c4.py
Traceback (most recent call last):
  File "c4.py", line 283, in <module>
    main()
  File "c4.py", line 277, in main
    animApp = Connect4Application(root)
  File "c4.py", line 110, in __init__
    self.buildWindow()
  File "c4.py", line 129, in buildWindow
    theTurtle = turtle.RawTurtle(canvas)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/turtle.py", line 2534, in __init__
    self.screen = TurtleScreen(canvas)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/turtle.py", line 1000, in __init__
    cv._rootwindow.call('wm', 'attributes', '.', '-topmost', '1')
AttributeError: 'Canvas' object has no attribute '_rootwindow'
Kent's Mac> 

The code is attached. The error occurs on line 129 when trying to create a RawTurtle and provide it with a Canvas.

----------
components: Tkinter
files: c4.py
messages: 225049
nosy: Kent.D..Lee
priority: normal
severity: normal
status: open
title: Turtle Graphics RawTurtle problem
versions: Python 3.4
Added file: http://bugs.python.org/file36307/c4.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22168>
_______________________________________


More information about the New-bugs-announce mailing list