mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #14117: Inprove help text and docstrings, some for clarity, some just to
fit in the default width of the text window (45 chars).
This commit is contained in:
parent
6f6922c090
commit
c5a72e6971
7 changed files with 60 additions and 48 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue