summaryrefslogtreecommitdiff
path: root/src/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.py')
-rw-r--r--src/main.py24
1 files changed, 11 insertions, 13 deletions
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()