diff options
author | csabella <cheryl.sabella@gmail.com> | 2017-07-31 15:10:13 -0400 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-07-31 22:10:13 +0300 |
commit | 2bf1586e60a6639b532cd8e3442ae33064523eb1 (patch) | |
tree | aa0964860c85cfc49a6b378500eb7a19b225b27c /Lib/tkinter/ttk.py | |
parent | 8c4e5be1dfb4d1c74e8cc7ac925e3196818e07ac (diff) | |
download | cpython-git-2bf1586e60a6639b532cd8e3442ae33064523eb1.tar.gz |
[3.6] bpo-25684: ttk.OptionMenu radiobuttons weren't unique (GH-2276) (#2959)
between instances of OptionMenu.
(cherry picked from commit a568e5273382a5dca0c27274f7d8e34c41a87d4d)
* Update Misc/ACKS
Diffstat (limited to 'Lib/tkinter/ttk.py')
-rw-r--r-- | Lib/tkinter/ttk.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/tkinter/ttk.py b/Lib/tkinter/ttk.py index c474e60713..9cd0c2073a 100644 --- a/Lib/tkinter/ttk.py +++ b/Lib/tkinter/ttk.py @@ -1638,7 +1638,8 @@ class OptionMenu(Menubutton): menu.delete(0, 'end') for val in values: menu.add_radiobutton(label=val, - command=tkinter._setit(self._variable, val, self._callback)) + command=tkinter._setit(self._variable, val, self._callback), + variable=self._variable) if default: self._variable.set(default) |