diff --git a/pyAmakIHM/classes/controleur.py b/pyAmakIHM/classes/controleur.py index 39b60d89cc1e170e13f3c28d480c7cbd2db4beca..b591ebf7e177357edea72abac2e7d1202318f9e2 100644 --- a/pyAmakIHM/classes/controleur.py +++ b/pyAmakIHM/classes/controleur.py @@ -242,12 +242,10 @@ class Controleur: def updateCycle(self) -> None: self.updateWindow() - """ try: self.updateWindow() except: return - """ def updateWindow(self): pass @@ -267,7 +265,7 @@ class Controleur: def updateClosing(self): self.__scheduler.exit_program() - + """ Messages you want to show in the console You can let a string empty, but not the both diff --git a/pyAmakIHM/classes/fenetre.py b/pyAmakIHM/classes/fenetre.py index 650675e1bd3981c859969bc40348ea1df36eb40c..f29c2d632b0f23a639d47efe857a96c91f9566e9 100644 --- a/pyAmakIHM/classes/fenetre.py +++ b/pyAmakIHM/classes/fenetre.py @@ -301,12 +301,11 @@ class Fenetre : def display(self) -> None: self.get_root().mainloop() + def logsDisplay(self, message : str) -> None: + self.__panel_log.logsDisplay(message) + """ Displaying logs on the screen """ def errorDisplay(self,typeError : str, message : str) -> None: - self.__panel_log.logsDisplay("Erreur : "+typeError+", "+" : "+message) - - - def logsDisplay(self, message : str) -> None: - self.__panel_log.logsDisplay(message) + self.__panel_log.errorDisplay(typeError,message) diff --git a/pyAmakIHM/classes/panelLogs.py b/pyAmakIHM/classes/panelLogs.py index 8f34f2809add195f422a3e10a4b3ff9f61ba2ea3..69ac0cb85febc630bb36ffd4b0551188bca8c905 100644 --- a/pyAmakIHM/classes/panelLogs.py +++ b/pyAmakIHM/classes/panelLogs.py @@ -46,9 +46,16 @@ class PanelLogs(Text): def getText(self) -> Text : return self.__affichage + """ insert the text we want in the texte place """ def logsDisplay(self, message : str) -> None: place=self.getText() place.insert("end", message+"\n") + + """ + Displaying logs on the screen + """ + def errorDisplay(self,typeError : str, message : str) -> None: + self.logsDisplay("Erreur : "+typeError+", "+" : "+message)