Skip to content
Snippets Groups Projects
Commit 92f55901 authored by Aurélie  AKLI's avatar Aurélie AKLI
Browse files

Update panelLogs.py

parent 0a95cd59
No related branches found
No related tags found
No related merge requests found
...@@ -23,18 +23,17 @@ class PanelLogs(Text): ...@@ -23,18 +23,17 @@ class PanelLogs(Text):
super().__init__(root,bg='white') super().__init__(root,bg='white')
self.__root = root self.__root = root
"""
place where you can write and read logs
"""
self.__affichage=Text(self,height=300 , width=600) self.__affichage=Text(self,height=300 , width=600)
self.__affichage.pack(fill='both',expand='yes')
self.__affichage.insert ('20.0', "end" )
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.__affichageScroll = Scrollbar(self.__affichage,orient="vertical",command=self.__affichage.yview)
self.__affichageScroll2 = Scrollbar(self.__affichage,orient="horizontal",command=self.__affichage.xview) self.__affichageScroll2 = Scrollbar(self.__affichage,orient="horizontal",command=self.__affichage.xview)
...@@ -44,11 +43,15 @@ class PanelLogs(Text): ...@@ -44,11 +43,15 @@ class PanelLogs(Text):
self.__affichageScroll.pack(side='right',fill='y') self.__affichageScroll.pack(side='right',fill='y')
self.__affichageScroll2.pack(side='bottom',fill='x') self.__affichageScroll2.pack(side='bottom',fill='x')
"""
return the logs place
"""
def getText(self) -> Text : def getText(self) -> Text :
return self.__affichage return self.__affichage
"""
insert the text we want in the texte place
"""
def logsDisplay(self, message : str) -> None: def logsDisplay(self, message : str) -> None:
place=self.getText() place=self.getText()
place.insert("end", message) place.insert("end", message)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment