I\'m using pyqt4 in python. When I close the QMainWindow window , its not handled by closeEvent method. Please someone tell me what is wrong with this cod
closeEvent
This is my solution,
def closeEvent(self, e): close = QMessageBox.question( self, "Close Application", "Are you sure?", QMessageBox.Yes | QMessageBox.No, QMessageBox.No ) e.ignore() if close == QMessageBox.Yes: e.accept()