mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
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.
This commit is contained in:
parent
68c46ae68b
commit
adbed2d542
6 changed files with 58 additions and 3 deletions
|
@ -310,7 +310,7 @@ class TixWidget(tkinter.Widget):
|
|||
del cnf[k]
|
||||
|
||||
self.widgetName = widgetName
|
||||
Widget._setup(self, master, cnf)
|
||||
self._setup(master, cnf)
|
||||
|
||||
# If widgetName is None, this is a dummy creation call where the
|
||||
# corresponding Tk widget has already been created by Tix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue