code: def get_save_request_from_user(self):
          
  
          msg = _("There are unsaved changes.\nDo you want to save?")
  
          dlg = GMD.GenericMessageDialog(
              self.main_window, msg,
              _("Unsaved changes"), wx.YES_NO | wx.ICON_QUESTION | wx.CANCEL)
  
          save_choice = dlg.ShowModal()
  
          dlg.Destroy()
  
          if save_choice == wx.ID_YES:
              return True
  
          elif save_choice == wx.ID_NO:
              return False
docs: Queries user if grid should be saved