blob: bc4950e39e6de5244c5e307e74c0336e3a916cb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
from sys import argv
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 = ""
def __init__(self) -> None:
super().__init__() # Déclenche l'"__init__" de QMainWindow
globalMenu.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()
|