'Clear all relevant data from the widget.'

def clear(self):

    self.model = None
    self.forest_adapter = None
    self.ptrees = []
    self.grid_items = []
    self.grid.clear()
    self._clear_info_box()
    self._clear_target_class_combo()
    self._clear_depth_slider()
