View Single Post
Old 09-04-2012, 02:54 AM   #13
Pepin33
Zealot
Pepin33 has a complete set of Star Wars action figures.Pepin33 has a complete set of Star Wars action figures.Pepin33 has a complete set of Star Wars action figures.Pepin33 has a complete set of Star Wars action figures.Pepin33 has a complete set of Star Wars action figures.
 
Posts: 109
Karma: 419
Join Date: Aug 2012
Location: Spain
Device: Kindle Touch
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?
Pepin33 is offline   Reply With Quote