def copy_to_clipboard(self): from spyderlib.dependencies import status QApplication.clipboard().setText(status())