From d12ff4871844043e7a9e06a63a79c6e415ade936 Mon Sep 17 00:00:00 2001 From: Debulois Date: Thu, 5 May 2022 16:17:58 +0200 Subject: Tous les fichiers sont commentés MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/mainLogout.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/app/mainLogout.py') diff --git a/src/app/mainLogout.py b/src/app/mainLogout.py index 4df4273..00a2168 100644 --- a/src/app/mainLogout.py +++ b/src/app/mainLogout.py @@ -1,9 +1,21 @@ +############################################################################ +# # +# Description: Function pour se déconnecter # +# # +############################################################################ + +# Import de PyQt5 from PyQt5.QtWidgets import QMessageBox def core_logout(mainWindow: object) -> None: - """""" + """ + Modifie les variable de la classe principale de l'app + afin de déconnecter l'utilisateur + """ + # On réinitialise les variables de la classe + # principale pour déconnecter l'utilisateur if mainWindow.userConnected == True: mainWindow.userConnected = False mainWindow.userId = "" @@ -11,6 +23,7 @@ def core_logout(mainWindow: object) -> None: mainWindow.userInscrDate = "" mainWindow.userStatus = "" + # On avertit avec QMessage QMessageBox.information( mainWindow, "Déconnection", -- cgit v1.2.3