Skip to content
Permalink
Browse files

added threading to execution from console

git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@268 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
volayaf
volayaf committed Jun 28, 2012
1 parent 0573907 commit 6cc27c7e23f843d3857e877b0a77c9b6cee94549
Showing with 12 additions and 2 deletions.
  1. +12 −2 src/sextante/core/Sextante.py
@@ -287,8 +287,18 @@ def runalg(name, *args):
SextanteLog.addToLog(SextanteLog.LOG_ALGORITHM, alg.getAsCommand())

QApplication.setOverrideCursor(QCursor(Qt.WaitCursor))
alg.execute()
QApplication.restoreOverrideCursor()
algEx = AlgorithmExecutor(alg)
def finish():
#SextantePostprocessing.handleAlgorithmResults(alg)
QApplication.restoreOverrideCursor()
def error(msg):
QApplication.restoreOverrideCursor()
print msg
SextanteLog.addToLog(SextanteLog.LOG_ERROR, msg)
algEx.error.connect(error)
algEx.finished.connect(finish)
algEx.start()
algEx.wait()
return alg.getOutputValuesAsDictionary()


0 comments on commit 6cc27c7

Please sign in to comment.
You can’t perform that action at this time.