This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Bryan.Oakley
Recipients Bryan.Oakley
Date 2015-11-20.17:24:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1448040288.53.0.198369542776.issue25684@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-11-20 17:24:48Bryan.Oakleysetrecipients: + Bryan.Oakley
2015-11-20 17:24:48Bryan.Oakleysetmessageid: <1448040288.53.0.198369542776.issue25684@psf.upfronthosting.co.za>
2015-11-20 17:24:48Bryan.Oakleylinkissue25684 messages
2015-11-20 17:24:48Bryan.Oakleycreate