]> granicus.if.org Git - python/commitdiff
document turtle mainloop()/done() functions; thanks to Csaba Szepesvari from docs@
authorSandro Tosi <sandro.tosi@gmail.com>
Mon, 31 Oct 2011 09:08:14 +0000 (10:08 +0100)
committerSandro Tosi <sandro.tosi@gmail.com>
Mon, 31 Oct 2011 09:08:14 +0000 (10:08 +0100)
Doc/library/turtle.rst

index 98c07ca96fa1ce18c0c4aa83dfbfcf663cce69f6..e05305acb7ec1319cc968a4222834fc06b919a52 100644 (file)
@@ -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
 ----------------------