mirror of
https://github.com/python/cpython.git
synced 2025-10-06 07:02:33 +00:00
[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:
parent
8c4e5be1df
commit
2bf1586e60
4 changed files with 30 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue