From 7fe7ee1246b0f9961b7a7c419207394a9b94df65 Mon Sep 17 00:00:00 2001
From: Jdrezen <jeremie.drezen@gmail.com>
Date: Mon, 10 May 2021 16:51:15 +0200
Subject: [PATCH] =?UTF-8?q?Ajout=20d'une=20l=C3=A9gende?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 philosopher_example/controleurPhilosophersExample.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/philosopher_example/controleurPhilosophersExample.py b/philosopher_example/controleurPhilosophersExample.py
index 016961c..2b8fbe1 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)
-- 
GitLab