From a9db763cc0d2c27b5ba38dd639a884953290d9c6 Mon Sep 17 00:00:00 2001 From: Sandro Tosi Date: Mon, 31 Oct 2011 10:08:14 +0100 Subject: [PATCH] document turtle mainloop()/done() functions; thanks to Csaba Szepesvari from docs@ --- Doc/library/turtle.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 ---------------------- -- 2.50.1