code: def clear_boxes(self):
          
          self.tmin_box.Clear()
          self.tmin_box.SetStringSelection("")
          if self.current_fit:
              self.tmin_box.SetItems(self.T_list)
              self.tmin_box.SetSelection(-1)
  
          self.tmax_box.Clear()
          self.tmax_box.SetStringSelection("")
          if self.current_fit:
              self.tmax_box.SetItems(self.T_list)
              self.tmax_box.SetSelection(-1)
  
          self.fit_box.Clear()
          self.fit_box.SetStringSelection("")
          if self.s in self.pmag_results_data['specimens'] and self.pmag_results_data['specimens'][self.s]:
              self.fit_box.SetItems(
                  list([x.name for x in self.pmag_results_data['specimens'][self.s]]))
  
          for parameter in ['dec', 'inc', 'n', 'mad', 'dang', 'alpha95']:
              COMMAND = "self.s%s_window.SetValue('')" % parameter
              exec(COMMAND)
              COMMAND = "self.s%s_window.SetBackgroundColour(wx.Colour('grey'))" % parameter
              exec(COMMAND)
docs: Clear all boxes