[3.6] bpo-25684: ttk.OptionMenu radiobuttons weren't unique (GH-2276) (#2959)

between instances of OptionMenu.
(cherry picked from commit a568e52733)

* Update Misc/ACKS
This commit is contained in:
csabella 2017-07-31 15:10:13 -04:00 committed by Serhiy Storchaka
parent 8c4e5be1df
commit 2bf1586e60
4 changed files with 30 additions and 1 deletions

View file

@ -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)