--- a/src/eric7/VirtualEnv/VirtualenvExecDialog.py Thu May 25 11:12:05 2023 +0200 +++ b/src/eric7/VirtualEnv/VirtualenvExecDialog.py Thu May 25 19:51:47 2023 +0200 @@ -9,7 +9,7 @@ import os -from PyQt6.QtCore import QProcess, QTimer, QUrl +from PyQt6.QtCore import QProcess, QTimer, QUrl, pyqtSlot from PyQt6.QtGui import QDesktopServices from PyQt6.QtWidgets import QDialog, QDialogButtonBox @@ -123,12 +123,12 @@ elif button == self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel): self.__finish(0, 0, giveUp=True) + @pyqtSlot(int, QProcess.ExitStatus) def __finish(self, exitCode, exitStatus, giveUp=False): """ Private slot called when the process finished. - It is called when the process finished or - the user pressed the button. + It is called when the process finished or the user pressed the button. @param exitCode exit code of the process (integer) @param exitStatus exit status of the process (QProcess.ExitStatus)