PyDocs

Nav

Graphical user interfaces with Tk

onkey

turtle

function
  • onkey(fun, key)
Bind fun to key-release event of key. If fun is None, event bindings are removed. Remark: in order to be able to register key-events, TurtleScreen must have the focus. (See method listen().)
1 Example
>>> def f():
...     fd(50)
...     lt(60)
...
>>> screen.onkey(f, "Up")
>>> screen.listen()
from the Python docs
See Also
No see-alsos for turtle/onkey
0 Notes
No notes for onkey