mirror of
https://github.com/python/cpython.git
synced 2025-08-18 07:41:05 +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.
(cherry picked from commit adbed2d542
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
2e315d87ff
commit
dc0a87d9a0
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