diff options
| author | Debulois <quentin@debulois.fr> | 2022-04-20 13:17:36 +0200 |
|---|---|---|
| committer | Debulois <quentin@debulois.fr> | 2022-04-20 13:17:36 +0200 |
| commit | 4c4f70bf6eb88a419add86e182d3080674196433 (patch) | |
| tree | de407cee641f168c5ac325aa6a8b695ee04a429b /src/main.py | |
| parent | 41243ec2137bac39225231c0834f9d611fe94728 (diff) | |
Mis en place de la structure orientée objet
Diffstat (limited to 'src/main.py')
| -rw-r--r-- | src/main.py | 29 |
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() |
