Skip to content
Snippets Groups Projects
Commit 3270f60e authored by Jdrezen's avatar Jdrezen
Browse files

Suppression d'un scrollBar et fix des méthodes d'affichages

parent 6cace0c7
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,7 @@ class Fenetre : ...@@ -55,7 +55,7 @@ class Fenetre :
self.__onglet.add(self.__panelVue, text="Vue") self.__onglet.add(self.__panelVue, text="Vue")
self.__panel_log = PanelLogs(self.__division) self.__panel_log = PanelLogs(self.__division)
self.__division.add(self.__onglet) self.__division.add(self.__onglet)
self.__division.add(self.__panel_log) self.__division.add(self.__panel_log)
...@@ -305,20 +305,8 @@ class Fenetre : ...@@ -305,20 +305,8 @@ class Fenetre :
Displaying logs on the screen Displaying logs on the screen
""" """
def errorDisplay(self,typeError : str, message : str) -> None: def errorDisplay(self,typeError : str, message : str) -> None:
if (typeError != "") and (message != ""): self.__panel_log.logsDisplay("Erreur : "+typeError+", "+" : "+message)
self.__panel_log.logsDisplay(typeError+" : "+message)
elif typeError == "":
self.__panel_log.logsDisplay(message)
elif typeError == "":
self.__panel_log.logsDisplay(typeError)
else :
print("Empty string for typeError and message : at least one of them must not be empty \n")
def logsDisplay(self, message : str) -> None: def logsDisplay(self, message : str) -> None:
if message== "": self.__panel_log.logsDisplay(message)
print("The message you want to print is empty.\n")
else :
self.__panel_log.logsDisplay(message)
...@@ -35,13 +35,10 @@ class PanelLogs(Text): ...@@ -35,13 +35,10 @@ class PanelLogs(Text):
put scrollbars in the text place 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.__affichage.configure(yscrollcommand=self.__affichageScroll.set) self.__affichage.configure(yscrollcommand=self.__affichageScroll.set)
self.__affichage.configure(yscrollcommand=self.__affichageScroll2.set)
self.__affichageScroll.pack(side='right',fill='y') self.__affichageScroll.pack(side='right',fill='y')
self.__affichageScroll2.pack(side='bottom',fill='x')
""" """
return the logs place return the logs place
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment