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

View file

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