From afd6fb901b7e8f99cdb1bb0d2134cec2d6cebc3b Mon Sep 17 00:00:00 2001 From: Debulois Date: Fri, 29 Apr 2022 11:15:04 +0200 Subject: Ajout de la gestion de ses infos --- src/main.py | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) (limited to 'src/main.py') diff --git a/src/main.py b/src/main.py index bc4950e..bbff713 100644 --- a/src/main.py +++ b/src/main.py @@ -1,24 +1,22 @@ -from sys import argv +import sys from PyQt5.QtWidgets import QMainWindow, QApplication from src.gui import pageHome from src.gui import globalMenu -""" -https://peps.python.org/pep-0008/ -'python a = lambda a, b: truc' = 'js a = (a, b) => {truc}' = Fonction anonyme -""" class mainWindow(QMainWindow): + VERSION = 0.1 - # Misc + mysqlReachable: bool = False - # Utilisateur + userConnected: bool = False - userId: str = "" - userEmail: str = "" - userInscriptionDate: str = "" - userStatus: str = "" + userId: str = "" + userEmail: str = "" + userStatus: str = "" + userInscrDate: str = "" + def __init__(self) -> None: super().__init__() # Déclenche l'"__init__" de QMainWindow globalMenu.init(self) @@ -29,9 +27,9 @@ if __name__ == "__main__": def main(): """Démarrage de l'app """ - APP = QApplication(argv) + APP = QApplication(sys.argv) GUI = mainWindow() GUI.show() - exit(APP.exec_()) + sys.exit(APP.exec_()) main() -- cgit v1.2.3