[Python-checkins] cpython (2.7): document turtle mainloop()/done() functions; thanks to Csaba Szepesvari from

sandro.tosi python-checkins at python.org
Mon Oct 31 10:16:51 CET 2011


http://hg.python.org/cpython/rev/1588b678d634
changeset:   73239:1588b678d634
branch:      2.7
parent:      73232:87251608cb64
user:        Sandro Tosi <sandro.tosi at gmail.com>
date:        Mon Oct 31 10:08:14 2011 +0100
summary:
  document turtle mainloop()/done() functions; thanks to Csaba Szepesvari from docs@

files:
  Doc/library/turtle.rst |  10 ++++++++++
  1 files changed, 10 insertions(+), 0 deletions(-)


diff --git a/Doc/library/turtle.rst b/Doc/library/turtle.rst
--- a/Doc/library/turtle.rst
+++ b/Doc/library/turtle.rst
@@ -157,6 +157,7 @@
    | :func:`onclick`
    | :func:`onrelease`
    | :func:`ondrag`
+   | :func:`mainloop` | :func:`done`
 
 Special Turtle methods
    | :func:`begin_poly`
@@ -1291,6 +1292,15 @@
    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
 ----------------------
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list