ProjectPyramid/PyramidDialog.py

changeset 74
11587ae1122f
parent 71
8a78fab32c18
child 80
b39b70d147a9
equal deleted inserted replaced
72:3b3e73b730f0 74:11587ae1122f
13 except NameError: 13 except NameError:
14 pass 14 pass
15 15
16 import os 16 import os
17 17
18 from PyQt4.QtCore import QProcess, QTimer, pyqtSlot, Qt, QCoreApplication 18 from PyQt5.QtCore import QProcess, QTimer, pyqtSlot, Qt, QCoreApplication
19 from PyQt4.QtGui import QDialog, QDialogButtonBox, QLineEdit, QTextEdit 19 from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QLineEdit, QTextEdit
20 20
21 from E5Gui import E5MessageBox 21 from E5Gui import E5MessageBox
22 22
23 from .Ui_PyramidDialog import Ui_PyramidDialog 23 from .Ui_PyramidDialog import Ui_PyramidDialog
24 24
168 if not procStarted: 168 if not procStarted:
169 self.buttonBox.setFocus() 169 self.buttonBox.setFocus()
170 self.inputGroup.setEnabled(False) 170 self.inputGroup.setEnabled(False)
171 E5MessageBox.critical( 171 E5MessageBox.critical(
172 self, 172 self,
173 self.trUtf8('Process Generation Error'), 173 self.tr('Process Generation Error'),
174 self.trUtf8( 174 self.tr(
175 'The process {0} could not be started. ' 175 'The process {0} could not be started. '
176 'Ensure, that it is in the search path.' 176 'Ensure, that it is in the search path.'
177 ).format(command)) 177 ).format(command))
178 else: 178 else:
179 self.inputGroup.setEnabled(True) 179 self.inputGroup.setEnabled(True)

eric ide

mercurial