]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-111092: Make turtledemo run without default root enabled (GH-111093) (...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 20 Oct 2023 04:25:17 +0000 (06:25 +0200)
committerGitHub <noreply@github.com>
Fri, 20 Oct 2023 04:25:17 +0000 (04:25 +0000)
gh-111092: Make turtledemo run without default root enabled (GH-111093)

Add missing 'root' argument to PanedWindow call.
Other root children already have it.
(cherry picked from commit b802882fb2bff8b431df661322908c07491f3ce7)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Lib/turtledemo/__main__.py
Misc/NEWS.d/next/Library/2023-10-19-22-46-34.gh-issue-111092.hgut12.rst [new file with mode: 0644]

index f6c9d6aa6f9a324e0b092bd8b23fbe931e3bda65..2ab6c15e2c079ee355eea4c07c3985179fb2f29c 100755 (executable)
@@ -161,7 +161,7 @@ class DemoWindow(object):
                               label='Help', underline=0)
         root['menu'] = self.mBar
 
-        pane = PanedWindow(orient=HORIZONTAL, sashwidth=5,
+        pane = PanedWindow(root, orient=HORIZONTAL, sashwidth=5,
                            sashrelief=SOLID, bg='#ddd')
         pane.add(self.makeTextFrame(pane))
         pane.add(self.makeGraphFrame(pane))
diff --git a/Misc/NEWS.d/next/Library/2023-10-19-22-46-34.gh-issue-111092.hgut12.rst b/Misc/NEWS.d/next/Library/2023-10-19-22-46-34.gh-issue-111092.hgut12.rst
new file mode 100644 (file)
index 0000000..487bd17
--- /dev/null
@@ -0,0 +1 @@
+Make turtledemo run without default root enabled.