mirror of
https://github.com/python/cpython.git
synced 2025-11-11 19:12: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
dfe23ee20f
commit
04aa15f5e7
6 changed files with 58 additions and 3 deletions
|
|
@ -11,7 +11,7 @@ class Dialog(Widget):
|
|||
def __init__(self, master=None, cnf={}, **kw):
|
||||
cnf = _cnfmerge((cnf, kw))
|
||||
self.widgetName = '__dialog__'
|
||||
Widget._setup(self, master, cnf)
|
||||
self._setup(master, cnf)
|
||||
self.num = self.tk.getint(
|
||||
self.tk.call(
|
||||
'tk_dialog', self._w,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue