]> 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:34:24 +0000 (04:34 -0700)
committerGitHub <noreply@github.com>
Tue, 27 Sep 2022 11:34:24 +0000 (04:34 -0700)
commit04aa15f5e79819ad5d0c135136844efd641935c1
tree51390525e10f145a13ed0abd27b8d8bf4db84d61
parentdfe23ee20f9b03f46a1a39607f69108b16aae7d8
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]