With 4.2.5 on MacOS, I am seeing this error:
if dlg.ShowModal() == wx.ID_OK:
~~~~~~~~~~~~~^^
wx._core.wxAssertionError: C++ assertion "nIndex < m_nCount" failed at ./include/wx/arrstr.h(227) in Item(): wxArrayString: index out of bounds
The code creating the problem is:
dlg = wx.FileDialog(self, 'Choose GSAS-II project file name', pth, self.newGPXfile,
'GSAS-II project file (*.gpx)|*.gpx',wx.FD_SAVE|wx.FD_OVERWRITE_PROMPT)
if dlg.ShowModal() == wx.ID_OK:
FWIW, pth is an existing directory and self.newGPXfile is an empty str. This code has worked for many years. If I use conda to downgrade to wx 4.2.4, the problem goes away.
Anyone see anything wrong here or see a similar problem in 4.2.5?