dialog icon bug -- mac os 10.4.7

Hi,

wx.ICON_QUESTION
produces an exclamation icon.

wx.ICON_EXCLAMATION,
wx.ICON_INFORMATION,
wx.ICON_ERROR
produce a generic python icon.

Example code:

···

---
import wx

app = wx.PySimpleApp()
dlg = wx.MessageDialog(None, 'Is this cool', "Hello world dialog box",
        wx.YES_NO | wx.ICON_QUESTION)
result = dlg.ShowModal()
dlg.Destroy()
---

intel mac, os 10.4.7

7stud wrote:

Hi,

wx.ICON_QUESTION produces an exclamation icon.

Not sure what is going on here... Please enter a bug report about it with a category of wxMac Specific.

wx.ICON_EXCLAMATION,
wx.ICON_INFORMATION, wx.ICON_ERROR
produce a generic python icon.

If you put your app in an application bundle then it will display the bundle's icon. That is how Apple dictates that message dialogs should behave. If you look closely you'll see a small version of the app icon overlaid on the system exclamation icon too.

BTW, if you want to make a custom message dialog that looks and acts more like the other platforms there is some code in the Main.py demo module that can help you get started. Look at the MessagePanel class. Just keep in mind that it won't look normal to Mac users.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!