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

Modif gestion de la fermeture de la fenetre

parent fa861415
Branches
No related tags found
No related merge requests found
...@@ -196,11 +196,11 @@ class Controleur: ...@@ -196,11 +196,11 @@ class Controleur:
def start(self): def start(self):
self.initialisation() self.initialisation()
self.__th = Thread(target=self.__amas.start) self.__th = Thread(target=self.__amas.start)
#self.__th.setDaemon(True)
self.__th.start() self.__th.start()
self.__fenetre.display() self.__fenetre.display()
def updateClosing(self): def updateClosing(self):
print("Debut dans le controleur")
self.__amas.exit_program() self.__amas.exit_program()
self.__amas.take_token() print("Attente de l'amas")
self.__th.join() self.__th.join()
...@@ -218,9 +218,6 @@ class Fenetre : ...@@ -218,9 +218,6 @@ class Fenetre :
def on_closing(self): def on_closing(self):
self.__observer.updateClosing() self.__observer.updateClosing()
for pan in self.__panelGraphiques:
pan.quit()
self.__panelVue.quit()
self.__root.quit() self.__root.quit()
print('fin') print('fin')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment