title: wxPython Message Dialogs Shown Twice
body: <p>I've noticed that all my dialogs are being shown twice. So instead of them being destroyed immediately after the user presses 'OK', another message dialog pops up and the user has to press 'OK' again before it destroys.</p>
  
  <p>A bit annoying considering that these dialogs can show up somewhat often.</p>
  
  <p>Here is an example:</p>
  
  <pre><code>class windowClass(wx.Frame):
  
      def noBrowser(self, event):
          dlg = wx.MessageDialog(self,
                                 "Please choose a browser!",
                                 "Error", wx.OK)
          dlg.ShowModal()
          dlg.Destroy()
  </code></pre>
  
  <p>This is part of a function in another class that calls this function...</p>
  
  <pre><code>if searchrow &lt; numrows:
          try:
              search=startSearch(file)
              search.findDomains(searchrow, numrows, sheet, wbook, file)
              myClass.finderStarted=True
          except AttributeError:
               myClass.noBrowser(self)
  </code></pre>
  
  <p>myClass is an instance of the windowClass</p>