diff --git a/pyAmakIHM/classes/controleur.py b/pyAmakIHM/classes/controleur.py index b591ebf7e177357edea72abac2e7d1202318f9e2..0e0b374a40e3cd98b0a32e4cac801cf875bf93ae 100644 --- a/pyAmakIHM/classes/controleur.py +++ b/pyAmakIHM/classes/controleur.py @@ -267,11 +267,13 @@ class Controleur: """ - Messages you want to show in the console - You can let a string empty, but not the both + Display a message in the logs """ - def errorDisplay(self,typeError : str, message : str)-> None: - self.__fenetre.errorDisplay(typeError, message) - def logsDisplay(self, message : str) -> None: self.__fenetre.logsDisplay(message) + + """ + Display an error in the logs + """ + def errorDisplay(self, typeError : str, message : str)-> None: + self.__fenetre.errorDisplay(typeError, message) diff --git a/pyAmakIHM/classes/panelLogs.py b/pyAmakIHM/classes/panelLogs.py index 69ac0cb85febc630bb36ffd4b0551188bca8c905..a1584fff44ddd0e561cc2533eba7e07009722407 100644 --- a/pyAmakIHM/classes/panelLogs.py +++ b/pyAmakIHM/classes/panelLogs.py @@ -48,14 +48,14 @@ class PanelLogs(Text): """ - insert the text we want in the texte place + Display a message in the logs """ def logsDisplay(self, message : str) -> None: place=self.getText() place.insert("end", message+"\n") """ - Displaying logs on the screen + Display an error in the logs """ - def errorDisplay(self,typeError : str, message : str) -> None: + def errorDisplay(self, typeError : str, message : str) -> None: self.logsDisplay("Erreur : "+typeError+", "+" : "+message)