code: def display_warning(self, message, short_message,
                          style=wx.OK | wx.ICON_WARNING):
          
  
          dlg = GMD.GenericMessageDialog(self.main_window, message,
                                         short_message, style)
          dlg.ShowModal()
          dlg.Destroy()
docs: Displays a warning message