code: def reset(self):
          
          self.idx_annotations.setText('Load Annotation File...')
          self.idx_rater.setText('')
  
          self.annot = None
          self.dataset_markers = None
  
          # remove dataset marker
          self.idx_marker.clearContents()
          self.idx_marker.setRowCount(0)
  
          # remove summary statistics
          w1 = self.idx_summary.takeAt(1).widget()
          w2 = self.idx_summary.takeAt(1).widget()
          self.idx_summary.removeWidget(w1)
          self.idx_summary.removeWidget(w2)
          w1.deleteLater()
          w2.deleteLater()
          b1 = QGroupBox('Staging')
          b2 = QGroupBox('Signal quality')
          self.idx_summary.addWidget(b1)
          self.idx_summary.addWidget(b2)
  
          # remove annotations
          self.display_eventtype()
          self.update_annotations()
  
          self.parent.create_menubar()
docs: Remove all annotations from window.