src/eric7/VirtualEnv/VirtualenvUpgradeExecDialog.py

branch
eric7
changeset 10069
435cc5875135
parent 9653
e67609152c5e
child 10433
328f3ec4b77a
equal deleted inserted replaced
10068:7febcdccb2a1 10069:435cc5875135
7 Module implementing the virtualenv upgrade execution dialog. 7 Module implementing the virtualenv upgrade execution dialog.
8 """ 8 """
9 9
10 import os 10 import os
11 11
12 from PyQt6.QtCore import QProcess, QTimer 12 from PyQt6.QtCore import QProcess, QTimer, pyqtSlot
13 from PyQt6.QtWidgets import QDialog, QDialogButtonBox 13 from PyQt6.QtWidgets import QDialog, QDialogButtonBox
14 14
15 from eric7 import Preferences 15 from eric7 import Preferences
16 from eric7.SystemUtilities import PythonUtilities 16 from eric7.SystemUtilities import PythonUtilities
17 17
105 if button == self.buttonBox.button(QDialogButtonBox.StandardButton.Close): 105 if button == self.buttonBox.button(QDialogButtonBox.StandardButton.Close):
106 self.accept() 106 self.accept()
107 elif button == self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel): 107 elif button == self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel):
108 self.__finish(0, 0, giveUp=True) 108 self.__finish(0, 0, giveUp=True)
109 109
110 @pyqtSlot(int, QProcess.ExitStatus)
110 def __finish(self, exitCode, exitStatus, giveUp=False): 111 def __finish(self, exitCode, exitStatus, giveUp=False):
111 """ 112 """
112 Private slot called when the process finished. 113 Private slot called when the process finished.
113 114
114 It is called when the process finished or 115 It is called when the process finished or

eric ide

mercurial