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 |