from sys import argv from PyQt5.QtWidgets import QMainWindow, QApplication from src.gui import pageHome from src.gui.include import menu """ 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 = "" def __init__(self) -> None: super().__init__() # Déclenche l'"__init__" de QMainWindow menu.init(self) pageHome.main(self) if __name__ == "__main__": def main(): """Démarrage de l'app """ APP = QApplication(argv) GUI = mainWindow() GUI.show() exit(APP.exec_()) main()