updated graph canvas width and height to use the id it already knows of
This commit is contained in:
parent
7c8f9dac0f
commit
6425b08878
1 changed files with 1 additions and 2 deletions
|
@ -543,8 +543,7 @@ class CanvasGraph(tk.Canvas):
|
||||||
|
|
||||||
:return: nothing
|
:return: nothing
|
||||||
"""
|
"""
|
||||||
grid = self.find_withtag("rectangle")[0]
|
x0, y0, x1, y1 = self.coords(self.grid)
|
||||||
x0, y0, x1, y1 = self.coords(grid)
|
|
||||||
canvas_w = abs(x0 - x1)
|
canvas_w = abs(x0 - x1)
|
||||||
canvas_h = abs(y0 - y1)
|
canvas_h = abs(y0 - y1)
|
||||||
return canvas_w, canvas_h
|
return canvas_w, canvas_h
|
||||||
|
|
Loading…
Add table
Reference in a new issue