def get_warning_choice(self, message, short_message,
                           style=wx.YES_NO | wx.NO_DEFAULT | wx.ICON_WARNING):
        """Launches proceeding dialog and returns True if ok to proceed"""

        dlg = GMD.GenericMessageDialog(self.main_window, message,
                                       short_message, style)

        choice = dlg.ShowModal()

        dlg.Destroy()

        return choice == wx.ID_YES
def get_warning_choice ( self , message , short_message , style = wx . YES_NO | wx . NO_DEFAULT | wx . ICON_WARNING ) : dlg = GMD . GenericMessageDialog ( self . main_window , message , short_message , style ) choice = dlg . ShowModal ( ) dlg . Destroy ( ) return choice == wx . ID_YES
Launches proceeding dialog and returns True if ok to proceed