code: def paste(self, key, data):
          
  
          data_gen = self._get_paste_data_gen(key, data)
  
          self.grid.actions.paste(key[:2], data_gen, freq=1000)
  
          self.main_window.grid.ForceRefresh()
docs: Pastes data into grid
  
          Parameters
          ----------
  
          key: 2-Tuple of Integer
          \tTop left cell
          data: String or wx.Bitmap
          \tTab separated string of paste data
          \tor paste data image