Better functions for closing and executing
This commit is contained in:
parent
9ac8f50e8c
commit
29daec40e5
1 changed files with 2 additions and 2 deletions
|
@ -283,10 +283,10 @@ class MainWindow(QMainWindow, Ui_MainWindow):
|
||||||
"Möchten Sie wirklich schließen?",
|
"Möchten Sie wirklich schließen?",
|
||||||
QMessageBox.Yes | QMessageBox.No, QMessageBox.No)
|
QMessageBox.Yes | QMessageBox.No, QMessageBox.No)
|
||||||
if reply == QMessageBox.Yes:
|
if reply == QMessageBox.Yes:
|
||||||
sys.exit(0)
|
super.close()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
app = QApplication([])
|
app = QApplication([])
|
||||||
app.setApplicationName("WikiCookBook")
|
app.setApplicationName("WikiCookBook")
|
||||||
window = MainWindow()
|
window = MainWindow()
|
||||||
app.exec_()
|
sys.exit(app.exec_())
|
||||||
|
|
Reference in a new issue