Kaydet (Commit) a9db763c authored tarafından Sandro Tosi's avatar Sandro Tosi

document turtle mainloop()/done() functions; thanks to Csaba Szepesvari from docs@

üst 86d669bd
...@@ -157,6 +157,7 @@ Using events ...@@ -157,6 +157,7 @@ Using events
| :func:`onclick` | :func:`onclick`
| :func:`onrelease` | :func:`onrelease`
| :func:`ondrag` | :func:`ondrag`
| :func:`mainloop` | :func:`done`
Special Turtle methods Special Turtle methods
| :func:`begin_poly` | :func:`begin_poly`
...@@ -1291,6 +1292,15 @@ Using events ...@@ -1291,6 +1292,15 @@ Using events
the screen thereby producing handdrawings (if pen is down). 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 Special Turtle methods
---------------------- ----------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment