A bug in wxPython (possibly because it is in wxWidgets)

Hello!

If wx.MessageDialog() is used to create a dialog, the title bar icon of the parent frame is shown in the title bar of this dialog as well, but the title bar icon of the parent frame is NOT shown in the title bar of this dialog if wx.MessageBox() is used to create the dialog.

This is a bug and it is present ONLY under Linux. I’ve tested this under Windows XP, but it worked correctly for the wx.MessageBox().

Please fix this bug. I think you should fix it in wxWidgets and it will be fixed in wxPython once that’ll be re-SWIG-ed. Thank you.

Chester wrote:

Hello!

If wx.MessageDialog() is used to create a dialog, the title bar icon of the parent frame is shown in the title bar of this dialog as well, but the title bar icon of the parent frame is NOT shown in the title bar of this dialog if wx.MessageBox() is used to create the dialog.

This is a bug and it is present ONLY under Linux. I've tested this under Windows XP, but it worked correctly for the wx.MessageBox().

Please fix this bug. I think you should fix it in wxWidgets and it will be fixed in wxPython once that'll be re-SWIG-ed. Thank you.

Pass the parent window to wx.MessageBox, then it will know where to get the default icon it should use.

···

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

Yes, you’re right. I’m sooo stupid! :slight_smile: I forgot to give that wx.MessageBox() class the ‘self’ argument. My bad. Thanks fot the tip there Robin. :wink:

···

On Sun, May 4, 2008 at 1:28 AM, Robin Dunn robin@alldunn.com wrote:

Chester wrote:

Hello!

If wx.MessageDialog() is used to create a dialog, the title bar icon of the parent frame is shown in the title bar of this dialog as well, but the title bar icon of the parent frame is NOT shown in the title bar of this dialog if wx.MessageBox() is used to create the dialog.

This is a bug and it is present ONLY under Linux. I’ve tested this under Windows XP, but it worked correctly for the wx.MessageBox().

Please fix this bug. I think you should fix it in wxWidgets and it will be fixed in wxPython once that’ll be re-SWIG-ed. Thank you.

Pass the parent window to wx.MessageBox, then it will know where to get the default icon it should use.

Robin Dunn

Software Craftsman

http://wxPython.org Java give you jitters? Relax with wxPython!


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users