From 809f5c2c7ce0bdf05287c6f1b5ec1330efb0c469 Mon Sep 17 00:00:00 2001 From: Debulois Date: Sun, 1 May 2022 23:24:19 +0200 Subject: Ajout du système pour mandater et mise en page des documents MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/mainLogout.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/app/mainLogout.py (limited to 'src/app/mainLogout.py') diff --git a/src/app/mainLogout.py b/src/app/mainLogout.py new file mode 100644 index 0000000..4df4273 --- /dev/null +++ b/src/app/mainLogout.py @@ -0,0 +1,18 @@ + +from PyQt5.QtWidgets import QMessageBox + + +def core_logout(mainWindow: object) -> None: + """""" + if mainWindow.userConnected == True: + mainWindow.userConnected = False + mainWindow.userId = "" + mainWindow.userEmail = "" + mainWindow.userInscrDate = "" + mainWindow.userStatus = "" + + QMessageBox.information( + mainWindow, + "Déconnection", + "Vous êtes déconnecté." + ) -- cgit v1.2.3