code: def show_crit_window_err_messege(self, crit):
          
          dlg = wx.MessageDialog(
              self, caption="Error:", message="not a vaild value for statistic %s\n ignoring value" % crit, style=wx.OK)
          result = self.show_dlg(dlg)
          if result == wx.ID_OK:
              dlg.Destroy()
docs: error message if a valid naumber is not entered to criteria dialog
          boxes