[issue45160] ttk.OptionMenu radiobuttons change variable value twice

E. Paine report at bugs.python.org
Fri Sep 10 06:08:50 EDT 2021


E. Paine <xepaine13 at gmail.com> added the comment:

Thank you for reporting this issue (and doing your research!). I don't think we could use `command=self._callback` since this wouldn't pass the new value, but something like `command=lambda val=val: self._callback(val)` would work perfectly. Would you like to open a pull request for this (with accompanying news entry and test), or would you rather I did it?

----------
nosy: +epaine, serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45160>
_______________________________________


More information about the Python-bugs-list mailing list