]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-43457: Tkinter: fix design flaws in wm_attributes() (GH-111404)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 5 Feb 2024 16:24:54 +0000 (18:24 +0200)
committerGitHub <noreply@github.com>
Mon, 5 Feb 2024 16:24:54 +0000 (18:24 +0200)
commitb4ba0f73d6eef3da321bb96aafd09dfbc572e95d
treeb7e4d26504fe8fcb7dcddc469508eab22afda319
parent992446dd5bd3fff92ea0f8064fb19eebfe105cef
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.
Doc/whatsnew/3.13.rst
Lib/test/test_tkinter/support.py
Lib/test/test_tkinter/test_misc.py
Lib/tkinter/__init__.py
Lib/tkinter/simpledialog.py
Misc/NEWS.d/next/Library/2023-10-27-19-24-58.gh-issue-43457.84lx9H.rst [new file with mode: 0644]