def persist_clipboard():
 clipboard = QtWidgets.QApplication.clipboard()
 event = QtCore.QEvent(QtCore.QEvent.Clipboard)
 QtWidgets.QApplication.sendEvent(clipboard, event)

def persist_clipboard ( ) : clipboard = QtWidgets . QApplication . clipboard ( ) event = QtCore . QEvent ( QtCore . QEvent . Clipboard ) QtWidgets . QApplication . sendEvent ( clipboard , event )
persist the clipboard x11 stores only a reference to the clipboard data .