1try:
2 from tkinter import *
3except ImportError:
4 from Tkinter import *
5
6root = Tk()
7
8height = 5
9width = 5
10for i in range(height): #Rows
11 for j in range(width): #Columns
12 b = Entry(root, text="")
13 b.grid(row=i, column=j)
14
15mainloop()
16