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 import os |
10 import os |
11 |
11 |
12 from PyQt4.QtCore import QProcess, QTimer, pyqtSlot, Qt |
12 from PyQt4.QtCore import QProcess, QTimer, pyqtSlot, Qt, QCoreApplication |
13 from PyQt4.QtGui import QDialog, QDialogButtonBox, QLineEdit |
13 from PyQt4.QtGui import QDialog, QDialogButtonBox, QLineEdit |
14 |
14 |
15 from E5Gui import E5MessageBox |
15 from E5Gui import E5MessageBox |
16 |
16 |
17 from .Ui_HgDialog import Ui_HgDialog |
17 from .Ui_HgDialog import Ui_HgDialog |
175 if self.__updateCommand: |
175 if self.__updateCommand: |
176 for line in s.splitlines(): |
176 for line in s.splitlines(): |
177 if '.e4p' in line: |
177 if '.e4p' in line: |
178 self.__hasAddOrDelete = True |
178 self.__hasAddOrDelete = True |
179 break |
179 break |
|
180 |
|
181 QCoreApplication.processEvents() |
180 |
182 |
181 def __readStderr(self): |
183 def __readStderr(self): |
182 """ |
184 """ |
183 Private slot to handle the readyReadStandardError signal. |
185 Private slot to handle the readyReadStandardError signal. |
184 |
186 |
190 s = str(self.proc.readAllStandardError(), |
192 s = str(self.proc.readAllStandardError(), |
191 Preferences.getSystem("IOEncoding"), |
193 Preferences.getSystem("IOEncoding"), |
192 'replace') |
194 'replace') |
193 self.errors.insertPlainText(s) |
195 self.errors.insertPlainText(s) |
194 self.errors.ensureCursorVisible() |
196 self.errors.ensureCursorVisible() |
|
197 |
|
198 QCoreApplication.processEvents() |
195 |
199 |
196 def on_passwordCheckBox_toggled(self, isOn): |
200 def on_passwordCheckBox_toggled(self, isOn): |
197 """ |
201 """ |
198 Private slot to handle the password checkbox toggled. |
202 Private slot to handle the password checkbox toggled. |
199 |
203 |