diff options
| -rw-r--r-- | Doc/library/turtle.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/library/turtle.rst b/Doc/library/turtle.rst index 98c07ca..e05305a 100644 --- a/Doc/library/turtle.rst +++ b/Doc/library/turtle.rst @@ -157,6 +157,7 @@ Using events | :func:`onclick` | :func:`onrelease` | :func:`ondrag` + | :func:`mainloop` | :func:`done` Special Turtle methods | :func:`begin_poly` @@ -1291,6 +1292,15 @@ Using events the screen thereby producing handdrawings (if pen is down). +.. function:: mainloop() + done() + + Starts event loop - calling Tkinter's mainloop function. Must be the last + statement in a turtle graphics program. + + >>> turtle.mainloop() + + Special Turtle methods ---------------------- |
