-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-73588: Fix generation of the default name of tkinter.Checkbutton. #97547
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
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
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.
Given that 2 other people noticed the issue, on the duplicate, I agree that it is worth fixing.
|
||
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 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
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 <[email protected]>
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 <[email protected]>
…H-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 <[email protected]>
…H-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 <[email protected]>
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.