mirror of https://github.com/python/cpython
Issue #22168: Prevent turtle AttributeError with non-default Canvas on OS X.
This commit is contained in:
parent
7c8b89e156
commit
152dfd1dac
|
@ -997,8 +997,9 @@ class TurtleScreen(TurtleScreenBase):
|
||||||
# Force Turtle window to the front on OS X. This is needed because
|
# Force Turtle window to the front on OS X. This is needed because
|
||||||
# the Turtle window will show behind the Terminal window when you
|
# the Turtle window will show behind the Terminal window when you
|
||||||
# start the demo from the command line.
|
# start the demo from the command line.
|
||||||
cv._rootwindow.call('wm', 'attributes', '.', '-topmost', '1')
|
rootwindow = cv.winfo_toplevel()
|
||||||
cv._rootwindow.call('wm', 'attributes', '.', '-topmost', '0')
|
rootwindow.call('wm', 'attributes', '.', '-topmost', '1')
|
||||||
|
rootwindow.call('wm', 'attributes', '.', '-topmost', '0')
|
||||||
|
|
||||||
def clear(self):
|
def clear(self):
|
||||||
"""Delete all drawings and all turtles from the TurtleScreen.
|
"""Delete all drawings and all turtles from the TurtleScreen.
|
||||||
|
|
|
@ -32,6 +32,8 @@ Core and Builtins
|
||||||
Library
|
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
|
- Issue #21147: sqlite3 now raises an exception if the request contains a null
|
||||||
character instead of truncate it. Based on patch by Victor Stinner.
|
character instead of truncate it. Based on patch by Victor Stinner.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue