]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-73588: Fix generation of the default name of tkinter.Checkbutton. (GH-97547)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 27 Sep 2022 11:39:31 +0000 (04:39 -0700)
committerGitHub <noreply@github.com>
Tue, 27 Sep 2022 11:39:31 +0000 (04:39 -0700)
commitdc0a87d9a0cf18fdfc51865a3c1bd2d5ebe9eae9
tree72bd3ca17f456c5ab39352ff1219f908009aafe1
parent2e315d87ff0e7ac01d532ebb334f7bb8f376bfe6
gh-73588: Fix generation of the default name of tkinter.Checkbutton. (GH-97547)

Previously, checkbuttons in different parent widgets could have the same
short name and share the same state if arguments "name" and "variable" are
not specified. Now they are globally unique.
(cherry picked from commit adbed2d542a815b8175db965742211856b19b52f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/tkinter/__init__.py
Lib/tkinter/dialog.py
Lib/tkinter/test/test_tkinter/test_widgets.py
Lib/tkinter/test/test_ttk/test_widgets.py
Lib/tkinter/tix.py
Misc/NEWS.d/next/Library/2022-09-25-20-42-33.gh-issue-73588.uVtjEA.rst [new file with mode: 0644]