code: def clear_boxes(self):
          
          self.tmin_box.Clear()
          self.tmin_box.SetItems(self.T_list)
          self.tmin_box.SetSelection(-1)
  
          self.tmax_box.Clear()
          self.tmax_box.SetItems(self.T_list)
          self.tmax_box.SetSelection(-1)
  
          self.Blab_window.SetValue("")
          self.Banc_window.SetValue("")
          self.Banc_window.SetBackgroundColour(wx.Colour('grey'))
          self.Aniso_factor_window.SetValue("")
          self.Aniso_factor_window.SetBackgroundColour(wx.Colour('grey'))
          self.NLT_factor_window.SetValue("")
          self.NLT_factor_window.SetBackgroundColour(wx.Colour('grey'))
          self.CR_factor_window.SetValue("")
          self.CR_factor_window.SetBackgroundColour(wx.Colour('grey'))
          self.declination_window.SetValue("")
          self.declination_window.SetBackgroundColour(wx.Colour('grey'))
          self.inclination_window.SetValue("")
          self.inclination_window.SetBackgroundColour(wx.Colour('grey'))
  
          window_list = ['sample_int_n', 'sample_int_uT',
                         'sample_int_sigma', 'sample_int_sigma_perc']
          for key in window_list:
              command = "self.%s_window.SetValue(\"\")" % key
              exec(command)
              command = "self.%s_window.SetBackgroundColour(wx.Colour('grey'))" % key
              exec(command)
  
          # window_list=['int_n','int_ptrm_n','frac','scat','gmax','f','fvds','b_beta','g','q','int_mad','int_dang','drats','md','ptrms_dec','ptrms_inc','ptrms_mad','ptrms_angle']
          # for key in window_list:
          for key in self.preferences['show_statistics_on_gui']:
              self.stat_windows[key].SetValue("")
              self.stat_windows[key].SetBackgroundColour(wx.Colour('grey'))
docs: Clear all boxes