class Board():
def __init__(self,parent,m, w, color='red'):
self.parent = parent
self.canvas = Canvas(parent, width = m*w, height = m*w,bg=color)
self.canvas.pack()
self.m = m
self.w = w
def draw_board(self):
print(self.m, self.w)
m = self.m
w = self.w
for i in range(m):
self.canvas.create_line(0,i*w, m*w, i*w, fill = "yellow", width = 3)
self.canvas.create_line(i*w, 0 , i*w, m*w, fill = "yellow", width = 3)