From 6425b08878f28a62fa43eace2b259e077d4b1932 Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Thu, 5 Dec 2019 13:17:12 -0800 Subject: [PATCH] updated graph canvas width and height to use the id it already knows of --- coretk/coretk/graph/graph.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/coretk/coretk/graph/graph.py b/coretk/coretk/graph/graph.py index 8e18c157..95ad19dc 100644 --- a/coretk/coretk/graph/graph.py +++ b/coretk/coretk/graph/graph.py @@ -543,8 +543,7 @@ class CanvasGraph(tk.Canvas): :return: nothing """ - grid = self.find_withtag("rectangle")[0] - x0, y0, x1, y1 = self.coords(grid) + x0, y0, x1, y1 = self.coords(self.grid) canvas_w = abs(x0 - x1) canvas_h = abs(y0 - y1) return canvas_w, canvas_h