diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-09-27 11:39:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-27 11:39:31 (GMT) |
commit | dc0a87d9a0cf18fdfc51865a3c1bd2d5ebe9eae9 (patch) | |
tree | 72bd3ca17f456c5ab39352ff1219f908009aafe1 /Lib/tkinter/tix.py | |
parent | 2e315d87ff0e7ac01d532ebb334f7bb8f376bfe6 (diff) | |
download | cpython-dc0a87d9a0cf18fdfc51865a3c1bd2d5ebe9eae9.zip cpython-dc0a87d9a0cf18fdfc51865a3c1bd2d5ebe9eae9.tar.gz cpython-dc0a87d9a0cf18fdfc51865a3c1bd2d5ebe9eae9.tar.bz2 |
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>
Diffstat (limited to 'Lib/tkinter/tix.py')
-rw-r--r-- | Lib/tkinter/tix.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tkinter/tix.py b/Lib/tkinter/tix.py index 44ecae1..ce21826 100644 --- a/Lib/tkinter/tix.py +++ b/Lib/tkinter/tix.py @@ -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 |