示例#1
0
 def runProcess(self, runStr, progress):
     process = QProcess(iface)
     process.start(runStr)
     process.waitForFinished()
     returnedstring = str(process.readAllStandardOutput())
     # print returnedstring
     progress.pushInfo(returnedstring)
     process.kill()
示例#2
0
 def runSurfit(self):
     runStr = os.path.join(self.plugin_dir, "bin/surfit ") + os.path.realpath(self.tclFilename)
     process = QProcess(iface)
     process.start(runStr)
     process.waitForFinished()
     # returnedstring = str(process.readAllStandardOutput())
     # print returnedstring
     # progress.setText(returnedstring)
     process.kill()