diff options
author | csabella <cheryl.sabella@gmail.com> | 2017-07-31 09:30:09 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-07-31 09:30:09 (GMT) |
commit | a568e5273382a5dca0c27274f7d8e34c41a87d4d (patch) | |
tree | 6fa43e8c6a12bbea985daa66c8e16f7884051169 /Lib/tkinter/ttk.py | |
parent | e8eb17b2c11dcd1550a94b175e557c234a804482 (diff) | |
download | cpython-a568e5273382a5dca0c27274f7d8e34c41a87d4d.zip cpython-a568e5273382a5dca0c27274f7d8e34c41a87d4d.tar.gz cpython-a568e5273382a5dca0c27274f7d8e34c41a87d4d.tar.bz2 |
bpo-25684: ttk.OptionMenu radiobuttons weren't unique (#2276)
between instances of OptionMenu.
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 cbaad76..3ecc004 100644 --- a/Lib/tkinter/ttk.py +++ b/Lib/tkinter/ttk.py @@ -1635,7 +1635,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) |