I am trying to write turtle code where something is triggered and the turtle window closes, so I try to use turtle.bye() but I keep getting the error:
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Program Files\Python36\lib\tkinter\__init__.py", line 1699, in
__call__
return self.func(*args)
File "C:\Program Files\Python36\lib\turtle.py", line 686, in eventfun
fun()
File "E:\Home made game\Chapter 1 Log Cabin.py", line 346, in k1
player.bye()
AttributeError: 'Turtle' object has no attribute 'bye'