Message225049
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. |
|
Date |
User |
Action |
Args |
2014-08-08 01:27:43 | Kent.D..Lee | set | recipients:
+ Kent.D..Lee |
2014-08-08 01:27:43 | Kent.D..Lee | set | messageid: <1407461263.41.0.42681300045.issue22168@psf.upfronthosting.co.za> |
2014-08-08 01:27:43 | Kent.D..Lee | link | issue22168 messages |
2014-08-08 01:27:43 | Kent.D..Lee | create | |
|