code: def _abort_paste(self):
          
  
          statustext = _("Paste aborted.")
          post_command_event(self.main_window, self.StatusBarMsg,
                             text=statustext)
  
          self.pasting = False
          self.need_abort = False
docs: Aborts import