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.

Author Kent.D..Lee
Recipients Kent.D..Lee
Date 2014-08-08.01:27:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1407461263.41.0.42681300045.issue22168@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-08-08 01:27:43Kent.D..Leesetrecipients: + Kent.D..Lee
2014-08-08 01:27:43Kent.D..Leesetmessageid: <1407461263.41.0.42681300045.issue22168@psf.upfronthosting.co.za>
2014-08-08 01:27:43Kent.D..Leelinkissue22168 messages
2014-08-08 01:27:43Kent.D..Leecreate