Open liudonghua123 opened 1 year ago
The exception comes from the following code.
And I can catch and pass the exception to make it work.
See also https://hg.python.org/cpython/rev/a43d03cdf38b, https://python-forum.io/thread-25483.html.
I am using miniconda in a macbook. I replicated the error. When I click the close button I got a similar Exception in Twinker Callback:
Traceback (most recent call last): File "/opt/miniconda3/envs/game_of_life/lib/python3.9/tkinter/__init__.py", line 1892, in __call__ return self.func(*args) File "/opt/miniconda3/envs/game_of_life/lib/python3.9/tkinter/__init__.py", line 814, in callit func(*args) File "/Users/johnmosquera/Documents/AI/yt-matthew-berman/pyGameExample/game_of_life.py", line 61, in draw ontimer(draw, 100) File "<string>", line 5, in ontimer turtle.Terminator
I tried to run the life game via
freegames play life
. When I click close button of the game window. I gotException in Tkinter callback
.