From 77380e3ef30a2039d54d6c50f912c7199b41311c Mon Sep 17 00:00:00 2001 From: George Lacey Date: Wed, 15 Feb 2017 12:36:42 +0000 Subject: [PATCH] Add drawCircle method --- Graph.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Graph.py b/Graph.py index 5a7b1cd..80ebc57 100644 --- a/Graph.py +++ b/Graph.py @@ -13,3 +13,10 @@ class Graph(object): def drawLine(self, p_point1, p_point2): Line(p_point1, p_point2).draw(self.win).move(self.x_offset, self.y_offset) + + def drawCircle(self, p_centre, p_radius, p_fill): + circle = Circle(p_centre, p_radius) + circle.setFill(p_fill) + circle.setOutline(p_fill) + circle.draw(self.win).move(self.x_offset, self.y_offset) +