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

Ajout de test si le nom de fichier est vide pour la sauvegarde de l'état

parent c057d7fe
No related branches found
No related tags found
No related merge requests found
......@@ -235,11 +235,11 @@ class Controleur:
self.__scheduler.start()
"""
Save the current state
Save the current state in the given file
"""
def updateSave(self, filename : str) -> None:
if not (filename is None):
self.__scheduler.save()
if filename != '':
self.__scheduler.save(filename)
def updateCycle(self) -> None:
try:
......@@ -247,14 +247,14 @@ class Controleur:
except:
return
def updateWindow(self):
def updateWindow(self) -> None:
pass
def initialisation(self) -> None:
pass
"""
Launch the amas in a thread and display the window
Launch the scheduler in a thread and display the window
"""
def start(self) -> None:
self.initialisation()
......@@ -262,7 +262,10 @@ class Controleur:
self.__th.start()
self.__fenetre.display()
def updateClosing(self):
"""
Close the scheduler
"""
def updateClosing(self) -> None:
self.__scheduler.exit_program()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment