5

I've tried to google it and I've looked in the wxpython docs but I just can't seem to find a way-- can you remove the annoying "error" beep that wx.MessageDialog makes when it pops up (aka when you call .ShowModal())?

Zac Smith
  • 328
  • 1
  • 10
  • I just noticed the beep goes away if you add the style flag `style=wx.ICON_QUESTION`, but that isn't exactly what I was looking for since it also displays a large question mark I don't necessarily want on every message dialog. – Zac Smith Aug 30 '11 at 22:40
  • 1
    I think that's standard platform behaviour (are you using Windows?) – Steven Sproat Aug 31 '11 at 18:14
  • Yes I am. I understand that certain styles of MessageDialog boxes are intended to have the sound, I'm just wondering if there's a way through wxpython to supress it without being forced to use the `style=wx.ICON_QUESTION` flag. – Zac Smith Sep 01 '11 at 01:36
  • I don't think so, sorry (just done a bit of googling about disabling a MessageBox sound [not wx specific]) – Steven Sproat Sep 01 '11 at 12:01

1 Answers1

3

You may try switching to wx.lib.agw.genericmessagedialog and see if the problem goes away.

yugr
  • 19,769
  • 3
  • 51
  • 96
Infinity77
  • 1,317
  • 10
  • 17