diff --git a/pyAmakIHM/classes/controleur.py b/pyAmakIHM/classes/controleur.py index bf42f6fd56e4eb21b36adec44f871f7c5ccf2660..2551239655195efcb85f4c82937bef3960b31105 100644 --- a/pyAmakIHM/classes/controleur.py +++ b/pyAmakIHM/classes/controleur.py @@ -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()