blob: 693964e6203f76bafc339301f3339b8c369db743 (
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
|
from sys import argv
from sys import exit as ex
from PyQt5.QtWidgets import QMainWindow, QApplication
from src.gui import menu, home
"""
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
def __init__(self):
super(mainWindow, self).__init__()
menu.init_menu(self)
home.home_page(self)
if __name__ == "__main__":
def main():
"""Démarrage de l'app
"""
app = QApplication(argv)
GUI = mainWindow()
GUI.show()
ex(app.exec_())
main()
|