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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22168>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to