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

Déplacement des méthodes de fenetre dans panelLogs

parent 3270f60e
Branches
No related tags found
No related merge requests found
...@@ -242,12 +242,10 @@ class Controleur: ...@@ -242,12 +242,10 @@ class Controleur:
def updateCycle(self) -> None: def updateCycle(self) -> None:
self.updateWindow() self.updateWindow()
"""
try: try:
self.updateWindow() self.updateWindow()
except: except:
return return
"""
def updateWindow(self): def updateWindow(self):
pass pass
...@@ -267,7 +265,7 @@ class Controleur: ...@@ -267,7 +265,7 @@ class Controleur:
def updateClosing(self): def updateClosing(self):
self.__scheduler.exit_program() self.__scheduler.exit_program()
""" """
Messages you want to show in the console Messages you want to show in the console
You can let a string empty, but not the both You can let a string empty, but not the both
......
...@@ -301,12 +301,11 @@ class Fenetre : ...@@ -301,12 +301,11 @@ class Fenetre :
def display(self) -> None: def display(self) -> None:
self.get_root().mainloop() self.get_root().mainloop()
def logsDisplay(self, message : str) -> None:
self.__panel_log.logsDisplay(message)
""" """
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:
self.__panel_log.logsDisplay("Erreur : "+typeError+", "+" : "+message) self.__panel_log.errorDisplay(typeError,message)
def logsDisplay(self, message : str) -> None:
self.__panel_log.logsDisplay(message)
...@@ -46,9 +46,16 @@ class PanelLogs(Text): ...@@ -46,9 +46,16 @@ class PanelLogs(Text):
def getText(self) -> Text : def getText(self) -> Text :
return self.__affichage return self.__affichage
""" """
insert the text we want in the texte place 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+"\n") place.insert("end", message+"\n")
"""
Displaying logs on the screen
"""
def errorDisplay(self,typeError : str, message : str) -> None:
self.logsDisplay("Erreur : "+typeError+", "+" : "+message)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment