1from tkinter import *
2
3center=Th()
4center.geometry('455x455')
5center.title("9x9 grid")
6
7cells = {}
8for row in range(9):
9 for column in range(9):
10 cell = Frame(center, bg='white', highlightbackground="black",
11 highlightcolor="black", highlightthickness=1,
12 width=50, height=50, padx=3, pady=3)
13 cell.grid(row=row, column=column)
14 cells[(row, column)] = cell
15
16center.mainloop()