]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-153422: Return bool from some tkinter query methods (GH-153429)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 9 Jul 2026 14:13:42 +0000 (17:13 +0300)
committerGitHub <noreply@github.com>
Thu, 9 Jul 2026 14:13:42 +0000 (14:13 +0000)
commitdd8739a35bf171068117019ceb836f2f2264a3e9
tree68be4f9b9362f5c5689b4688a09f363efc365359
parent1d196507e6496aab072e741e03d3565142a681ae
gh-153422: Return bool from some tkinter query methods (GH-153429)

The winfo_exists(), winfo_ismapped() and winfo_viewable() methods of
tkinter widgets and Text.edit_modified() now return a bool instead of an
integer or, depending on wantobjects, a string.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Doc/library/tkinter.rst
Doc/library/tkinter.ttk.rst
Lib/test/test_tkinter/test_images.py
Lib/test/test_tkinter/test_misc.py
Lib/test/test_tkinter/test_text.py
Lib/test/test_ttk/test_widgets.py
Lib/tkinter/__init__.py
Lib/tkinter/ttk.py
Misc/NEWS.d/next/Library/2026-07-09-12-35-19.gh-issue-153422.tKb0Xq.rst [new file with mode: 0644]