Documentating MainWindow.close()

This commit is contained in:
Marcel Kapfer 2020-04-30 19:05:19 +02:00
parent e3ea5f827d
commit 33615d54fa
Signed by: mmk2410
GPG Key ID: CADE6F0C09F21B09
1 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,9 @@ class MainWindow(QMainWindow, Ui_MainWindow):
self.show()
def close(self):
"""
Close the application. A warning is shown before.
"""
reply = QMessageBox.question(self, "Sicher?",
"Möchten Sie wirklich schließen?",
QMessageBox.Yes | QMessageBox.No, QMessageBox.No)