UI/UserInterface.py

changeset 464
a2b1d1770ef0
parent 461
34528aaedf1c
child 470
99d8c50ba42f
equal deleted inserted replaced
463:8d0309c4b7f6 464:a2b1d1770ef0
4457 args.extend(argv) 4457 args.extend(argv)
4458 t = self.trUtf8("Starting process '{0} {1}'.\n")\ 4458 t = self.trUtf8("Starting process '{0} {1}'.\n")\
4459 .format(program, tool['arguments']) 4459 .format(program, tool['arguments'])
4460 self.appendToStdout(t) 4460 self.appendToStdout(t)
4461 4461
4462 self.connect(proc, SIGNAL('finished(int, QProcess::ExitStatus)'), 4462 proc.finished.connect(self.__toolFinished)
4463 self.__toolFinished)
4464 if tool['redirect'] != 'no': 4463 if tool['redirect'] != 'no':
4465 self.connect(proc, SIGNAL('readyReadStandardOutput()'), 4464 proc.readyReadStandardOutput.connect(self.__processToolStdout)
4466 self.__processToolStdout) 4465 proc.readyReadStandardOutput.connect(self.__processToolStderr)
4467 self.connect(proc, SIGNAL('readyReadStandardError()'),
4468 self.__processToolStderr)
4469 if tool['redirect'] in ["insert", "replaceSelection"]: 4466 if tool['redirect'] in ["insert", "replaceSelection"]:
4470 aw = self.viewmanager.activeWindow() 4467 aw = self.viewmanager.activeWindow()
4471 procData = (aw, tool['redirect'], []) 4468 procData = (aw, tool['redirect'], [])
4472 if aw is not None: 4469 if aw is not None:
4473 aw.beginUndoAction() 4470 aw.beginUndoAction()
5525 self.__versionsDownloadCanceled) 5522 self.__versionsDownloadCanceled)
5526 self.__versionCheckProgress.setLabelText(self.trUtf8("Trying host {0}")\ 5523 self.__versionCheckProgress.setLabelText(self.trUtf8("Trying host {0}")\
5527 .format(url.host())) 5524 .format(url.host()))
5528 self.__versionCheckProgress.setValue(alternative) 5525 self.__versionCheckProgress.setValue(alternative)
5529 reply = self.__networkManager.get(QNetworkRequest(url)) 5526 reply = self.__networkManager.get(QNetworkRequest(url))
5530 self.connect(reply, SIGNAL("finished()"), self.__versionsDownloadDone) 5527 reply.finished[()].connect(self.__versionsDownloadDone)
5531 self.__replies.append(reply) 5528 self.__replies.append(reply)
5532 5529
5533 def __versionsDownloadDone(self): 5530 def __versionsDownloadDone(self):
5534 """ 5531 """
5535 Private method called, after the versions file has been downloaded 5532 Private method called, after the versions file has been downloaded

eric ide

mercurial