aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_tkinter/support.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-02-05 18:24:54 +0200
committerGitHub <noreply@github.com>2024-02-05 18:24:54 +0200
commitb4ba0f73d6eef3da321bb96aafd09dfbc572e95d (patch)
treeb7e4d26504fe8fcb7dcddc469508eab22afda319 /Lib/test/test_tkinter/support.py
parent992446dd5bd3fff92ea0f8064fb19eebfe105cef (diff)
downloadcpython-b4ba0f73d6eef3da321bb96aafd09dfbc572e95d.tar.gz
cpython-b4ba0f73d6eef3da321bb96aafd09dfbc572e95d.zip
gh-43457: Tkinter: fix design flaws in wm_attributes() (GH-111404)
* When called with a single argument to get a value, it allow to omit the minus prefix. * It can be called with keyword arguments to set attributes. * w.wm_attributes(return_python_dict=True) returns a dict instead of a tuple (it will be the default in future). * Setting wantobjects to 0 no longer affects the result.
Diffstat (limited to 'Lib/test/test_tkinter/support.py')
-rw-r--r--Lib/test/test_tkinter/support.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_tkinter/support.py b/Lib/test/test_tkinter/support.py
index a37705f0ae6..ebb9e00ff91 100644
--- a/Lib/test/test_tkinter/support.py
+++ b/Lib/test/test_tkinter/support.py
@@ -14,7 +14,7 @@ class AbstractTkTest:
# Some window managers can maximize new windows.
cls.root.wm_state('normal')
try:
- cls.root.wm_attributes('-zoomed', False)
+ cls.root.wm_attributes(zoomed=False)
except tkinter.TclError:
pass