From 5c568c257e3d9b4abbeffb9286e293e5f244d8e4 Mon Sep 17 00:00:00 2001
From: Jdrezen <jeremie.drezen@gmail.com>
Date: Mon, 10 May 2021 16:02:31 +0200
Subject: [PATCH] =?UTF-8?q?D=C3=A9calage=20du=20threading=20dans=20le=20co?=
 =?UTF-8?q?ntroleur?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 philosopher_example/philosophersLaunchExample.py | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/philosopher_example/philosophersLaunchExample.py b/philosopher_example/philosophersLaunchExample.py
index bda75cc..f7c913b 100644
--- a/philosopher_example/philosophersLaunchExample.py
+++ b/philosopher_example/philosophersLaunchExample.py
@@ -1,7 +1,6 @@
 from pyAmakIHM.classes.fenetre import Fenetre
 from controleurPhilosophersExample import ControleurPhilosophersExample
 from philosophersAmasExample import PhilosophersAmasExamples
-from threading import Thread
 
 fenetre = Fenetre("Prototype Philosophers")
 amas = PhilosophersAmasExamples()
@@ -9,14 +8,9 @@ amas = PhilosophersAmasExamples()
 controleur = ControleurPhilosophersExample(fenetre, amas)
 
 
-def run():
-    controleur.get_amas().start()
-
-
 def main():
     controleur.initialisation()
-    Thread(target=run).start()
-    controleur.get_fenetre().display()
+    controleur.start()
 
 
 main()
-- 
GitLab