code: def on_menu_criteria(self, event):
          
  
          dia = thellier_gui_dialogs.Criteria_Dialog(
              None, self.acceptance_criteria, self.preferences, title='Set Acceptance Criteria')
          dia.Center()
          result = self.show_dlg(dia)
  
          if result == wx.ID_OK:  # Until the user clicks OK, show the message
              self.On_close_criteria_box(dia)
docs: Change acceptance criteria
          and save it to the criteria file (data_model=2: pmag_criteria.txt; data_model=3: criteria.txt)