summaryrefslogtreecommitdiff
path: root/Lib/turtledemo/two_canvases.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2014-06-24 22:21:41 -0400
committerTerry Jan Reedy <tjreedy@udel.edu>2014-06-24 22:21:41 -0400
commitc5a72e6971b2927aa5fbfa6d7e02f6018b989768 (patch)
tree08fa163da474ab4f506c697e951cfe47a49771d9 /Lib/turtledemo/two_canvases.py
parent6f6922c0906e2986e221cb48c338f67ee72f1aee (diff)
downloadcpython-git-c5a72e6971b2927aa5fbfa6d7e02f6018b989768.tar.gz
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/two_canvases.py')
-rwxr-xr-xLib/turtledemo/two_canvases.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/Lib/turtledemo/two_canvases.py b/Lib/turtledemo/two_canvases.py
index 02d89db57e..26882caccf 100755
--- a/Lib/turtledemo/two_canvases.py
+++ b/Lib/turtledemo/two_canvases.py
@@ -1,8 +1,16 @@
-#!/usr/bin/env python3
-## DEMONSTRATES USE OF 2 CANVASES, SO CANNOT BE RUN IN DEMOVIEWER!
-"""turtle example: Using TurtleScreen and RawTurtle
-for drawing on two distinct canvases.
+"""turtledemo.two_canvases
+
+Use TurtleScreen and RawTurtle to draw on two
+distinct canvases.
"""
+#The final mainloop only serves to keep the window open.
+
+#TODO: This runs in its own two-canvas window when selected in the
+#demoviewer examples menu but the text is not loaded and the previous
+#example is left visible. If the ending mainloop is removed, the text
+#Eis loaded, this run again in a third window, and if start is pressed,
+#demoviewer raises an error because main is not found, and then freezes.
+
from turtle import TurtleScreen, RawTurtle, TK
root = TK.Tk()