code: def onCopySelection(self, event):
          
          if self.df_slice is not None:
              pd.DataFrame.to_clipboard(self.df_slice, header=False, index=False)
              self.grid.ClearSelection()
              self.df_slice = None
              print('-I- You have copied the selected cells.  You may paste them into a text document or spreadsheet using Command v.')
          else:
              print('-W- No cells were copied! You must highlight a selection cells before hitting the copy button.  You can do this by clicking and dragging, or by using the Shift key and click.')
docs: Copies self.df_slice to the Clipboard if slice exists