From 4c4f70bf6eb88a419add86e182d3080674196433 Mon Sep 17 00:00:00 2001 From: Debulois Date: Wed, 20 Apr 2022 13:17:36 +0200 Subject: Mis en place de la structure orientée objet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.py | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/main.py (limited to 'src/main.py') 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() -- cgit v1.2.3