code: def markers_to_events(self, keep_name=False):
          
          markers = self.parent.info.markers
          
          if markers is None:
              self.parent.statusBar.showMessage('No markers in dataset.')
              return
          
          if not keep_name:
              name, ok = self.new_eventtype()            
              if not ok:
                  return            
          else:
              name = None
                  
          self.annot.add_events(markers, name=name, chan='')
          
          if keep_name:
              self.display_eventtype()
              n_eventtype = self.idx_eventtype.count()
              self.idx_eventtype.setCurrentIndex(n_eventtype - 1)
          
          self.update_annotations()
docs: Copy all markers in dataset to event type.