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

Décalage du threading dans le controleur

parent 25288f0f
No related branches found
No related tags found
No related merge requests found
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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment