Message255001
Original issue was brought to my attention by this SO question: http://stackoverflow.com/questions/33831289/ttk-optionmenu-displaying-check-mark-on-all-menus
The ttk.OptionMenu uses radiobuttons for the dropdown menu. However, because it doesn't set the `variable` attribute, they all get the default. If you have two or more OptionMenu instances, all of the radiobuttons are tied together. If you select the first item in the first OptionMenu, and the second item in the second OptionMenu, the dropdown menu for both will show the second item checked.
The solution is to add `variable=self._variable` when creating the menu radiobutton items. |
|
Date |
User |
Action |
Args |
2015-11-20 17:24:48 | Bryan.Oakley | set | recipients:
+ Bryan.Oakley |
2015-11-20 17:24:48 | Bryan.Oakley | set | messageid: <1448040288.53.0.198369542776.issue25684@psf.upfronthosting.co.za> |
2015-11-20 17:24:48 | Bryan.Oakley | link | issue25684 messages |
2015-11-20 17:24:48 | Bryan.Oakley | create | |
|