Operating system: MacOS 14.2.1 (Sonoma)
wxPython version & source: 4.2.1 (Phoenix) installed by pip from wheel wxPython-4.2.1-cp39-cp39-macosx_10_10_universal2.whlPython version & source: 3.9.12 included with MacOS
Description of the problem:
wx.MessageDialog uses native dialog windows on MacOS. When used with the wx.ICON_ERROR style, it should show an error icon (exclamation mark) in the dialog. However, it only does this in combination with the wx.YES_NO style:
And not with the wx.OK style or with no other styles (the default):
The expected behaviour is that the exclamation mark icon is shown in both instances.
Operating system: MacOS 14.2.1 (Sonoma) wxPython version & source: 4.2.1 (Phoenix) installed by pip from wheel
wxPython-4.2.1-cp39-cp39-macosx_10_10_universal2.whl
Python version & source: 3.9.12 included with MacOSDescription of the problem:
wx.MessageDialog
uses native dialog windows on MacOS. When used with thewx.ICON_ERROR
style, it should show an error icon (exclamation mark) in the dialog. However, it only does this in combination with thewx.YES_NO
style:And not with the
wx.OK
style or with no other styles (the default):The expected behaviour is that the exclamation mark icon is shown in both instances.
Code Example (click to expand)
```python import wx app = wx.App() frame = wx.Frame() dlg = wx.MessageDialog(frame, 'text', 'Error', wx.ICON_ERROR | wx.OK) dlg.ShowModal() dlg.Destroy() dlg = wx.MessageDialog(frame, 'text', 'Error', wx.ICON_ERROR | wx.YES_NO) dlg.ShowModal() ```