235 match = self.__progressRe.search(s) |
235 match = self.__progressRe.search(s) |
236 if match: |
236 if match: |
237 progress = int(match.group(1)) |
237 progress = int(match.group(1)) |
238 self.progressBar.setValue(progress) |
238 self.progressBar.setValue(progress) |
239 if not s.endswith("\n"): |
239 if not s.endswith("\n"): |
240 s = s + "\n" |
240 s += "\n" |
241 self.resultbox.insertPlainText(s) |
241 self.resultbox.insertPlainText(s) |
242 self.resultbox.ensureCursorVisible() |
242 self.resultbox.ensureCursorVisible() |
243 |
243 |
244 QCoreApplication.processEvents() |
244 QCoreApplication.processEvents() |
245 |
245 |