
db = open("products.txt", "r")
file = csv.reader(db, delimiter=',')
table = [ [col[0],col[1],col[2]] for col in file]
pos_x, pos_y, cntr = 1, 1, 0
for value in table:
if cntr % 5 == 0:
print(cntr)
pos_x = pos_x + 1
#pos_x = pos_x + 114
pos_y = 0
b = Button(frame, text = (value[1] ), height = 6, width = 15, command=None, anchor=S,compound=CENTER)
b.grid(row=pos_x, column=pos_y)
pos_y = pos_y + 1
#pos_y = pos_y + 100
cntr = cntr + 1