I found that the most convenient way is to create a custom
"AlgorithmDialog" class where reimplement the closeEvent function.
Custom dialog must be loaded implementing the getCustomParametersDialog
in the custom geoalgorithm.
here the class:
class CustomAlgorithmDialog(AlgorithmDialog):
def __init__(self, alg):
AlgorithmDialog.__init__(self, alg)
def closeEvent(self, evnt):
# do something of 'extraordinary'
print 'something'
# call original function
super(CustomAlgorithmDialog, self).closeEvent(evnt)
here the function to implement in the custom geoalgorithm:
def getCustomParametersDialog(self):
return CustomAlgorithmDialog(self)
Nothing extraordinary, just to close the question.
enrico
_______________________________________________
Qgis-developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer