diff --git a/philosopher_example/controleurPhilosophersExample.py b/philosopher_example/controleurPhilosophersExample.py index 016961cbbb6071e668b296c2db63fcbc1fcc80b5..2b8fbe1b74fbcbcc9a4f2dcfb476c67a6202f9d5 100644 --- a/philosopher_example/controleurPhilosophersExample.py +++ b/philosopher_example/controleurPhilosophersExample.py @@ -33,6 +33,14 @@ class ControleurPhilosophersExample(Controleur): self.setXLabel(self.__barChart[2],'Philosophers') self.setYLabel(self.__barChart[2],'Hours') + self.draw_text(40,15, "EATING") + self.draw_text(40,45, "THINKING") + self.draw_text(40,75, "HUNGRY") + + self.draw_rectangle(10, 10, 20, 20, 'green') + self.draw_rectangle(10, 40, 20, 20, 'blue') + self.draw_rectangle(10, 70, 20, 20, 'red') + for i in range(self.__numberPhilosopher): x = 100 * cos(2 * pi * i / self.__numberPhilosopher) + (widthCanvas / 2) y = 100 * sin(2 * pi * i / self.__numberPhilosopher) + (heightCanvas / 2)