summaryrefslogtreecommitdiff
path: root/src/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.py')
-rw-r--r--src/main.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/main.py b/src/main.py
new file mode 100644
index 0000000..693964e
--- /dev/null
+++ b/src/main.py
@@ -0,0 +1,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()