diff --git a/philosopher_example/philosophersLaunchExample.py b/philosopher_example/philosophersLaunchExample.py index bda75ccadd628df416da4831c29b86a11e7b0cdc..f7c913b0a7842d470491d238c488ecb55564dba0 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()