From 33615d54fa4cfde139e6e3068b62bf85df7ccebb Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Thu, 30 Apr 2020 19:05:19 +0200 Subject: [PATCH] Documentating MainWindow.close() --- init.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.py b/init.py index 51bfb9c..0a6dbbf 100644 --- a/init.py +++ b/init.py @@ -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)