Hi @mcraig-ibme, I've come across some slightly strange behaviour under macOS Catalina / wxpython 4.1.1 with regard to the initial selection for wx.Choice widgets. This problem does not occur with wxpython 4.0.7.post2.
Basically, the initial selection for wx.Choice widgets is not being applied, as depicted below:
Hi @mcraig-ibme, I've come across some slightly strange behaviour under macOS Catalina / wxpython 4.1.1 with regard to the initial selection for
wx.Choice
widgets. This problem does not occur with wxpython 4.0.7.post2.Basically, the initial selection for
wx.Choice
widgets is not being applied, as depicted below:A little debugging led me to the
widget.SetFont()
call in theoxford_asl.gui.widgets:TabPage.pack
function. Before this call, callingwx.Choice.GetSelection
on the widget will return the initial selection value, but after the call will return -1.This PR simply moves the inital call to
choice.SetSelection(initial)
after the call toself.pack
, to work around this strange behaviour.