| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -997,8 +997,9 @@ def __init__(self, cv, mode=_CFG["mode"], | |||
| 997 | 997 | # Force Turtle window to the front on OS X. This is needed because | |
| 998 | 998 | # the Turtle window will show behind the Terminal window when you | |
| 999 | 999 | # start the demo from the command line. | |
| 1000 | - cv._rootwindow.call('wm', 'attributes', '.', '-topmost', '1') | ||
| 1001 | - cv._rootwindow.call('wm', 'attributes', '.', '-topmost', '0') | ||
| 1000 | + rootwindow = cv.winfo_toplevel() | ||
| 1001 | + rootwindow.call('wm', 'attributes', '.', '-topmost', '1') | ||
| 1002 | + rootwindow.call('wm', 'attributes', '.', '-topmost', '0') | ||
| 1002 | 1003 | ||
| 1003 | 1004 | def clear(self): | |
| 1004 | 1005 | """Delete all drawings and all turtles from the TurtleScreen. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,6 +32,8 @@ Core and Builtins | |||
| 32 | 32 | Library | |
| 33 | 33 | ------- | |
| 34 | 34 | ||
| 35 | + - Issue #22168: Prevent turtle AttributeError with non-default Canvas on OS X. | ||
| 36 | + | ||
| 35 | 37 | - Issue #21147: sqlite3 now raises an exception if the request contains a null | |
| 36 | 38 | character instead of truncate it. Based on patch by Victor Stinner. | |
| 37 | 39 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments