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
2ebdb2c9
Commit
2ebdb2c9
authored
Sep 13, 2014
by
Ned Deily
Browse files
Options
Browse Files
Download
Plain Diff
Issue #22168: Prevent turtle AttributeError with non-default Canvas on OS X.
parents
50ff8581
152dfd1d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
Lib/turtle.py
Lib/turtle.py
+3
-2
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/turtle.py
View file @
2ebdb2c9
...
...
@@ -997,8 +997,9 @@ class TurtleScreen(TurtleScreenBase):
# Force Turtle window to the front on OS X. This is needed because
# the Turtle window will show behind the Terminal window when you
# start the demo from the command line.
cv
.
_rootwindow
.
call
(
'wm'
,
'attributes'
,
'.'
,
'-topmost'
,
'1'
)
cv
.
_rootwindow
.
call
(
'wm'
,
'attributes'
,
'.'
,
'-topmost'
,
'0'
)
rootwindow
=
cv
.
winfo_toplevel
()
rootwindow
.
call
(
'wm'
,
'attributes'
,
'.'
,
'-topmost'
,
'1'
)
rootwindow
.
call
(
'wm'
,
'attributes'
,
'.'
,
'-topmost'
,
'0'
)
def
clear
(
self
):
"""Delete all drawings and all turtles from the TurtleScreen.
...
...
Misc/NEWS
View file @
2ebdb2c9
...
...
@@ -132,6 +132,8 @@ Core and Builtins
Library
-------
-
Issue
#
22168
:
Prevent
turtle
AttributeError
with
non
-
default
Canvas
on
OS
X
.
-
Issue
#
21147
:
sqlite3
now
raises
an
exception
if
the
request
contains
a
null
character
instead
of
truncate
it
.
Based
on
patch
by
Victor
Stinner
.
...
...
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