From 3f89ce7b21106120f5c07280ddc509d16da27c0c Mon Sep 17 00:00:00 2001 From: shinedday <shinedday@gmail.com> Date: Thu, 20 May 2021 14:11:44 +0200 Subject: [PATCH] Fix exit program --- pyAmakIHM/classes/controleur.py | 1 - pyAmakIHM/classes/fenetre.py | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pyAmakIHM/classes/controleur.py b/pyAmakIHM/classes/controleur.py index 0e0b374..86134f0 100644 --- a/pyAmakIHM/classes/controleur.py +++ b/pyAmakIHM/classes/controleur.py @@ -241,7 +241,6 @@ class Controleur: self.__scheduler.save() def updateCycle(self) -> None: - self.updateWindow() try: self.updateWindow() except: diff --git a/pyAmakIHM/classes/fenetre.py b/pyAmakIHM/classes/fenetre.py index bd374d0..bd42405 100644 --- a/pyAmakIHM/classes/fenetre.py +++ b/pyAmakIHM/classes/fenetre.py @@ -289,10 +289,14 @@ class Fenetre : """ Notify the controleur to stop the app and close the window """ + def on_closing(self) -> None: self.__observer.updateClosing() for pan in self.__panelGraphiques: pan.quit() + self.__panelVue.quit() + self.__panelCommandes.quit() + self.__panel_log.quit() self.__root.quit() """ -- GitLab