<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=iso-8859-15">
</head>
<body bgcolor="#FFFFFF" text="#006600">
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.<br>
<br>
here the class:<br>
<br>
class CustomAlgorithmDialog(AlgorithmDialog):<br>
def __init__(self, alg):<br>
AlgorithmDialog.__init__(self, alg)<br>
<br>
def closeEvent(self, evnt):<br>
# do something of 'extraordinary'<br>
print 'something'<br>
<br>
# call original function<br>
super(CustomAlgorithmDialog, self).closeEvent(evnt)<br>
<br>
here the function to implement in the custom geoalgorithm:<br>
<br>
def getCustomParametersDialog(self):<br>
return CustomAlgorithmDialog(self)<br>
<br>
Nothing extraordinary, just to close the question.<br>
enrico<br>
</body>
</html>