I have created a QMainWindow in python with Qt library. When user clicks on the close button, I'm prompting a warning QMessageBox (Yes/No). I want to fully disable main window's functionality until user chooses yes or no -to the second window-. (I want something like "freezing" the main window.) I have tried "self.setEnabled(False)" for the main window, but user could still click on minimize and maximize buttons.
Thank you in advance.