7 Module implementing a dialog starting a process and showing its output. |
7 Module implementing a dialog starting a process and showing its output. |
8 """ |
8 """ |
9 |
9 |
10 from __future__ import unicode_literals |
10 from __future__ import unicode_literals |
11 try: |
11 try: |
12 str = unicode # __IGNORE_WARNING__ |
12 str = unicode |
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 QTimer, QProcess, pyqtSlot, Qt, QProcessEnvironment |
18 from PyQt4.QtCore import QTimer, QProcess, pyqtSlot, Qt, QProcessEnvironment |
150 self.buttonBox.setFocus() |
150 self.buttonBox.setFocus() |
151 self.inputGroup.setEnabled(False) |
151 self.inputGroup.setEnabled(False) |
152 self.inputGroup.hide() |
152 self.inputGroup.hide() |
153 E5MessageBox.critical( |
153 E5MessageBox.critical( |
154 self, |
154 self, |
155 self.trUtf8('Process Generation Error'), |
155 self.tr('Process Generation Error'), |
156 self.trUtf8( |
156 self.tr( |
157 'The process {0} could not be started. ' |
157 'The process {0} could not be started. ' |
158 'Ensure, that it is in the search path.' |
158 'Ensure, that it is in the search path.' |
159 ).format('svn')) |
159 ).format('svn')) |
160 else: |
160 else: |
161 self.inputGroup.setEnabled(True) |
161 self.inputGroup.setEnabled(True) |