From 92f559011cdc4bc9f605c40d2dc886a2573b80ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lie=20=20AKLI?= <pr1temps@live.fr> Date: Fri, 14 May 2021 17:59:32 +0000 Subject: [PATCH] Update panelLogs.py --- pyAmakIHM/classes/panelLogs.py | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/pyAmakIHM/classes/panelLogs.py b/pyAmakIHM/classes/panelLogs.py index 9d564f0..20934a5 100644 --- a/pyAmakIHM/classes/panelLogs.py +++ b/pyAmakIHM/classes/panelLogs.py @@ -23,18 +23,17 @@ class PanelLogs(Text): super().__init__(root,bg='white') self.__root = root - + """ + place where you can write and read logs + """ self.__affichage=Text(self,height=300 , width=600) - - self.__affichage.insert ('20.0', "end" ) + self.__affichage.pack(fill='both',expand='yes') - self.__affichage.pack() - self.__affichagecd.pack(fill='both',expand='yes') - - - + """ + put scrollbars in the text place + """ self.__affichageScroll = Scrollbar(self.__affichage,orient="vertical",command=self.__affichage.yview) self.__affichageScroll2 = Scrollbar(self.__affichage,orient="horizontal",command=self.__affichage.xview) @@ -44,11 +43,15 @@ class PanelLogs(Text): self.__affichageScroll.pack(side='right',fill='y') self.__affichageScroll2.pack(side='bottom',fill='x') - + """ + return the logs place + """ 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) -- GitLab