New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-73588: Fix generation of the default name of tkinter.Checkbutton. #97547
gh-73588: Fix generation of the default name of tkinter.Checkbutton. #97547
Conversation
…tton. 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.
f5e927c
to
2589b3d
Compare
|
||
def test_same_name(self): | ||
f1 = tkinter.Frame(self.root) | ||
f2 = tkinter.Frame(self.root) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f2 is not used. Does its creation change something internally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! b2 should be created in f2.
Thanks @serhiy-storchaka for the PR |
GH-97595 is a backport of this pull request to the 3.11 branch. |
…tton. (pythonGH-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 adbed2d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-97596 is a backport of this pull request to the 3.10 branch. |
…tton. (pythonGH-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 adbed2d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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.