10 from PyQt6.QtCore import ( |
10 from PyQt6.QtCore import ( |
11 pyqtSlot, Qt, QCoreApplication, QTimer, QProcess |
11 pyqtSlot, Qt, QCoreApplication, QTimer, QProcess |
12 ) |
12 ) |
13 from PyQt6.QtWidgets import QDialog, QDialogButtonBox, QAbstractButton |
13 from PyQt6.QtWidgets import QDialog, QDialogButtonBox, QAbstractButton |
14 |
14 |
15 from E5Gui import E5MessageBox |
15 from E5Gui import EricMessageBox |
16 |
16 |
17 from .Ui_PipDialog import Ui_PipDialog |
17 from .Ui_PipDialog import Ui_PipDialog |
18 |
18 |
19 import Preferences |
19 import Preferences |
20 |
20 |
151 self.proc.readyReadStandardError.connect(self.__readStderr) |
151 self.proc.readyReadStandardError.connect(self.__readStderr) |
152 self.proc.start(cmd, args) |
152 self.proc.start(cmd, args) |
153 procStarted = self.proc.waitForStarted(5000) |
153 procStarted = self.proc.waitForStarted(5000) |
154 if not procStarted: |
154 if not procStarted: |
155 self.buttonBox.setFocus() |
155 self.buttonBox.setFocus() |
156 E5MessageBox.critical( |
156 EricMessageBox.critical( |
157 self, |
157 self, |
158 self.tr('Process Generation Error'), |
158 self.tr('Process Generation Error'), |
159 self.tr( |
159 self.tr( |
160 'The process {0} could not be started.' |
160 'The process {0} could not be started.' |
161 ).format(cmd)) |
161 ).format(cmd)) |