diff options
author | Sandro Tosi <sandro.tosi@gmail.com> | 2011-10-31 09:08:14 (GMT) |
---|---|---|
committer | Sandro Tosi <sandro.tosi@gmail.com> | 2011-10-31 09:08:14 (GMT) |
commit | a9db763cc0d2c27b5ba38dd639a884953290d9c6 (patch) | |
tree | 939ab3369c9f27e6d28a7a8ba05d45f114b45b07 /Doc | |
parent | 86d669bdb849ab5cf99623494c706a5ab416e84e (diff) | |
download | cpython-a9db763cc0d2c27b5ba38dd639a884953290d9c6.zip cpython-a9db763cc0d2c27b5ba38dd639a884953290d9c6.tar.gz cpython-a9db763cc0d2c27b5ba38dd639a884953290d9c6.tar.bz2 |
document turtle mainloop()/done() functions; thanks to Csaba Szepesvari from docs@
Diffstat (limited to 'Doc')
-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 ---------------------- |