May-12-2020, 10:49 PM
I would use an IntVar instead of trying to talk directly to the Entry objects.
squares = [] for r in range(9): y = 80 + r * 40 for c in range(9): var = IntVar() squares.append(var) x = 70 + c * 40 t= tk.Entry(fenster, font=("Times New Roman",12), textvars=var) t.place(x=x, y=y, width=40, height=40)Then you could use square[index].set(value) or square[index].get()