diff --git a/pyAmakIHM/classes/panelLogs.py b/pyAmakIHM/classes/panelLogs.py index 9d564f0919ff1cfedd996a6aa87568173f7f5ee5..20934a57dd10e3c67070bb74b3b8ef2695344750 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)