code: def copy_selection(self, _cut=False):
          
          new_document, clipboard_data = self.document.cut_selection()
          if _cut:
              self.document = new_document
  
          self.selection_state = None
          return clipboard_data
docs: Copy selected text and return :class:`.ClipboardData` instance.