summaryrefslogtreecommitdiffstats
path: root/Lib/turtledemo/peace.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2014-06-25 02:21:41 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2014-06-25 02:21:41 (GMT)
commitc5a72e6971b2927aa5fbfa6d7e02f6018b989768 (patch)
tree08fa163da474ab4f506c697e951cfe47a49771d9 /Lib/turtledemo/peace.py
parent6f6922c0906e2986e221cb48c338f67ee72f1aee (diff)
downloadcpython-c5a72e6971b2927aa5fbfa6d7e02f6018b989768.zip
cpython-c5a72e6971b2927aa5fbfa6d7e02f6018b989768.tar.gz
cpython-c5a72e6971b2927aa5fbfa6d7e02f6018b989768.tar.bz2
Issue #14117: Inprove help text and docstrings, some for clarity, some just to
fit in the default width of the text window (45 chars).
Diffstat (limited to 'Lib/turtledemo/peace.py')
-rwxr-xr-xLib/turtledemo/peace.py16
1 files changed, 6 insertions, 10 deletions
diff --git a/Lib/turtledemo/peace.py b/Lib/turtledemo/peace.py
index 63cf7cc..e2ba928 100755
--- a/Lib/turtledemo/peace.py
+++ b/Lib/turtledemo/peace.py
@@ -3,14 +3,10 @@
tdemo_peace.py
-A very simple drawing suitable as a beginner's
-programming example.
-
-Uses only commands, which are also available in
-old turtle.py.
-
-Intentionally no variables are used except for the
-colorloop:
+A simple drawing suitable as a beginner's
+programming example. Aside from the
+peacecolors assignment and the for loop,
+it only uses turtle commands.
"""
from turtle import *
@@ -21,7 +17,7 @@ def main():
"royalblue1", "dodgerblue4")
reset()
- s = Screen()
+ Screen()
up()
goto(-320,-195)
width(70)
@@ -58,7 +54,7 @@ def main():
up()
goto(0,300) # vanish if hideturtle() is not available ;-)
- return "Done!!"
+ return "Done!"
if __name__ == "__main__":
main()