The following binds every keypress directly to the canvas as a tkinter bind, not a turtle bind.
Tried it in trinket, doesn't work.
import turtle def key_handler(event): print(event.char) window = turtle.Screen() window.cv.bind('<KeyPress>', key_handler) window.listen() window.mainloop()
Tried it in trinket, doesn't work.
Error:AttributeError: 'Screen' object has no attribute 'cv' on line 11 in main.py