Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d80e0c86
Commit
d80e0c86
authored
Oct 16, 2006
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix turtle so that you can launch the demo2 function on its own instead of only
when the module is launched as a script.
parent
827ee441
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
Lib/lib-tk/turtle.py
Lib/lib-tk/turtle.py
+1
-1
Misc/NEWS
Misc/NEWS
+4
-0
No files found.
Lib/lib-tk/turtle.py
View file @
d80e0c86
...
...
@@ -15,6 +15,7 @@ pictures can easily be drawn.
"""
from
math
import
*
# Also for export
from
time
import
sleep
import
Tkinter
speeds
=
[
'fastest'
,
'fast'
,
'normal'
,
'slow'
,
'slowest'
]
...
...
@@ -949,7 +950,6 @@ def demo2():
if
__name__
==
'__main__'
:
from
time
import
sleep
demo
()
sleep
(
3
)
demo2
()
...
...
Misc/NEWS
View file @
d80e0c86
...
...
@@ -81,6 +81,10 @@ Core and builtins
Library
-------
-
Fix
turtle
so
that
time
.
sleep
is
imported
for
the
entire
library
.
Allows
the
demo2
function
to
be
executed
on
its
own
instead
of
only
when
the
module
is
run
as
a
script
.
-
Bug
#
813342
:
Start
the
IDLE
subprocess
with
-
Qnew
if
the
parent
is
started
with
that
option
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment