diff options
| author | Debulois <quentin@debulois.fr> | 2022-04-24 17:16:05 +0200 |
|---|---|---|
| committer | Debulois <quentin@debulois.fr> | 2022-04-24 17:16:05 +0200 |
| commit | 6104a59cbdf6474acea6a8a1d4c865f3d88d2296 (patch) | |
| tree | 2920dea1346aafb041643d87ba1bb6dc1a813ee2 /src/main.py | |
| parent | 4c4f70bf6eb88a419add86e182d3080674196433 (diff) | |
Mise en place du système de connexion / enregistrement
Diffstat (limited to 'src/main.py')
| -rw-r--r-- | src/main.py | 22 |
1 files changed, 15 insertions, 7 deletions
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() |
