Right. I tried putting a "Cancel" button, and then I have a self.wasCanceled()=true when the progress dialog is closed by the user (pressing "Cancel", "Close" or "ESC" key).
The problem comes if you don't use a "Cancel" button. Then, the wasCanceled() function doesn't help. Then, how can you know that the window is closing to stop the process you're doing? Another question: Anybody knows how can I cancel the "ESC" signal at PyQt windows, to prevent the user can close the dialog this way?
|