code: def fromMimeData(self, data):
          
          # Only insert the element if it is available in plain text.
          if data.hasText():
              self.insert(data.text())
  
          # Tell the underlying QsciScintilla object that the MIME data
          # object was indeed empty.
          return (QtCore.QByteArray(), False)
docs: Paste the clipboard data at the current cursor position.
  
          This method also adds another undo-object to the undo-stack.
  
          ..note: This method forcefully interrupts the ``QsciInternal``
                  pasting mechnism by returning an empty MIME data element.
                  This is not an elegant implementation, but the best I
                  could come up with at the moment.