From: Sandro Tosi Date: Mon, 31 Oct 2011 09:08:14 +0000 (+0100) Subject: document turtle mainloop()/done() functions; thanks to Csaba Szepesvari from docs@ X-Git-Tag: v2.7.3rc1~349 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9db763cc0d2c27b5ba38dd639a884953290d9c6;p=python document turtle mainloop()/done() functions; thanks to Csaba Szepesvari from docs@ --- diff --git a/Doc/library/turtle.rst b/Doc/library/turtle.rst index 98c07ca96f..e05305acb7 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 ----------------------