src/eric7/VirtualEnv/VirtualenvExecDialog.py

branch
eric7
changeset 10069
435cc5875135
parent 9653
e67609152c5e
child 10198
94ab7a21c3ad
diff -r 7febcdccb2a1 -r 435cc5875135 src/eric7/VirtualEnv/VirtualenvExecDialog.py
--- 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)

eric ide

mercurial