From 6104a59cbdf6474acea6a8a1d4c865f3d88d2296 Mon Sep 17 00:00:00 2001 From: Debulois Date: Sun, 24 Apr 2022 17:16:05 +0200 Subject: Mise en place du système de connexion / enregistrement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.py | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'src/main.py') diff --git a/src/main.py b/src/main.py index 693964e..a17e39f 100644 --- a/src/main.py +++ b/src/main.py @@ -1,8 +1,8 @@ from sys import argv -from sys import exit as ex from PyQt5.QtWidgets import QMainWindow, QApplication -from src.gui import menu, home +from src.gui import pageHome +from src.gui.include import menu """ @@ -11,19 +11,27 @@ https://peps.python.org/pep-0008/ """ class mainWindow(QMainWindow): VERSION = 0.1 - def __init__(self): + # Misc + mysqlReachable: bool = False + # Utilisateur + userConnected: bool = False + userId: str = "" + userEmail: str = "" + userInscriptionDate: str = "" + userStatus: str = "" + def __init__(self) -> None: super(mainWindow, self).__init__() - menu.init_menu(self) - home.home_page(self) + menu.init(self) + pageHome.main(self) if __name__ == "__main__": def main(): """Démarrage de l'app """ - app = QApplication(argv) + APP = QApplication(argv) GUI = mainWindow() GUI.show() - ex(app.exec_()) + exit(APP.exec_()) main() -- cgit v1.2.3