How can I assign a value that is returned from a function to an unnamed button that just called the function?
m is a 9x9 matrix (btw, it's a Sudoku-solver).
Or, if it can't be done that way, how can I dynamically name 81 buttons (like btn1, btn2, btn3...btn81)
Thanks a lot!
Code:
def felder_updaten(m): for i in range(9): for j in range(9): Button(mainframe, text=m[i][j], command=insert_number).grid(row=i, column=j, sticky=W+E)
Or, if it can't be done that way, how can I dynamically name 81 buttons (like btn1, btn2, btn3...btn81)
Thanks a lot!
Comment