summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2023-10-20 03:58:41 (GMT)
committerGitHub <noreply@github.com>2023-10-20 03:58:41 (GMT)
commitb802882fb2bff8b431df661322908c07491f3ce7 (patch)
treefdffe577a297b2890b7c39af71e2aebbf68153f9
parent8d234cd315a4c98a87778cc15e7563c7fe74881f (diff)
downloadcpython-b802882fb2bff8b431df661322908c07491f3ce7.zip
cpython-b802882fb2bff8b431df661322908c07491f3ce7.tar.gz
cpython-b802882fb2bff8b431df661322908c07491f3ce7.tar.bz2
gh-111092: Make turtledemo run without default root enabled (#111093)
Add missing 'root' argument to PanedWindow call. Other root children already have it.
-rwxr-xr-xLib/turtledemo/__main__.py2
-rw-r--r--Misc/NEWS.d/next/Library/2023-10-19-22-46-34.gh-issue-111092.hgut12.rst1
2 files changed, 2 insertions, 1 deletions
diff --git a/Lib/turtledemo/__main__.py b/Lib/turtledemo/__main__.py
index f6c9d6a..2ab6c15 100755
--- a/Lib/turtledemo/__main__.py
+++ b/Lib/turtledemo/__main__.py
@@ -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
index 0000000..487bd177
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2023-10-19-22-46-34.gh-issue-111092.hgut12.rst
@@ -0,0 +1 @@
+Make turtledemo run without default root enabled.