src/eric7/Project/CreateDialogCodeDialog.py

branch
eric7
changeset 9987
4fc496b56772
parent 9985
4098449deed5
child 9993
68f8765de8ad
equal deleted inserted replaced
9986:2c571c1c7b0d 9987:4fc496b56772
215 started = proc.waitForStarted(5000) 215 started = proc.waitForStarted(5000)
216 finished = proc.waitForFinished(30000) 216 finished = proc.waitForFinished(30000)
217 if started and finished: 217 if started and finished:
218 output = proc.readAllStandardError() 218 output = proc.readAllStandardError()
219 outText = str(output, "utf-8", "replace") 219 outText = str(output, "utf-8", "replace")
220 if "@@eric_start@@" in outText and "@@eric_end@@" in outText: 220 if "@@eric_start@@" in outText:
221 # it is something we sent via UicLoadUi[56].py 221 # it is something we sent via UicLoadUi[56].py
222 outText = outText.split("@@eric_start@@")[1].split("@@eric_end@@")[0] 222 outText = outText.split("@@eric_start@@")[1]
223 if proc.exitCode() == 0:
224 ok = True 223 ok = True
224 elif "@@eric_error@@" in outText:
225 # it is something we sent via UicLoadUi[56].py
226 outText = outText.split("@@eric_error@@")[1]
227 ok = False
228 else:
229 ok = False
230 if "@@eric_end@@" in outText:
231 # it is something we sent via UicLoadUi[56].py
232 outText = outText.split("@@eric_end@@")[0]
233 if ok:
225 uicText = outText.strip() 234 uicText = outText.strip()
226 else: 235 else:
227 EricMessageBox.critical( 236 EricMessageBox.critical(
228 self, 237 self,
229 self.tr("uic error"), 238 self.tr("uic error"),

eric ide

mercurial