Here’s some code I have:
self.sectionLabel = wx.StaticText(self.panel, label='Se&ction') self.sectionChoice = wx.Choice(self.panel) self.librariesCheckbox = wx.CheckBox(self.panel, label='Include &Libraries')
When I press Alt+L the checkbox correctly toggles.
But when I press Alt+C instead of the focus going to the Choice it also toggles the checkbox.
How can I force the sectionLabel’s mnemonic to be associated with the sectionChoice?
In Qt there’s a concept of “buddy” where a label’s buddy is the widget to give the focus to when the label’s mnemonic is pressed. Is there a wx equivalent?