Better functions for closing and executing

This commit is contained in:
Marcel Kapfer 2020-05-03 17:23:20 +02:00
parent 9ac8f50e8c
commit 29daec40e5
Signed by: mmk2410
GPG Key ID: CADE6F0C09F21B09
1 changed files with 2 additions and 2 deletions

View File

@ -283,10 +283,10 @@ class MainWindow(QMainWindow, Ui_MainWindow):
"Möchten Sie wirklich schließen?",
QMessageBox.Yes | QMessageBox.No, QMessageBox.No)
if reply == QMessageBox.Yes:
sys.exit(0)
super.close()
if __name__ == "__main__":
app = QApplication([])
app.setApplicationName("WikiCookBook")
window = MainWindow()
app.exec_()
sys.exit(app.exec_())