Documentating MainWindow.close()
This commit is contained in:
parent
e3ea5f827d
commit
33615d54fa
1 changed files with 3 additions and 0 deletions
3
init.py
3
init.py
|
@ -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)
|
||||||
|
|
Reference in a new issue