From 44fe498bc9f61ec90c7946445fd1b94d8bfda97d Mon Sep 17 00:00:00 2001 From: Jdrezen <jeremie.drezen@gmail.com> Date: Wed, 19 May 2021 16:12:12 +0200 Subject: [PATCH] Ajout de commentaires --- pyAmakIHM/classes/controleur.py | 12 +++++++----- pyAmakIHM/classes/panelLogs.py | 6 +++--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/pyAmakIHM/classes/controleur.py b/pyAmakIHM/classes/controleur.py index b591ebf..0e0b374 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 69ac0cb..a1584ff 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) -- GitLab