summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSandro Tosi <sandro.tosi@gmail.com>2011-10-31 09:08:14 (GMT)
committerSandro Tosi <sandro.tosi@gmail.com>2011-10-31 09:08:14 (GMT)
commita9db763cc0d2c27b5ba38dd639a884953290d9c6 (patch)
tree939ab3369c9f27e6d28a7a8ba05d45f114b45b07 /Doc
parent86d669bdb849ab5cf99623494c706a5ab416e84e (diff)
downloadcpython-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.rst10
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
----------------------