I am trying to bind a button press to a function in Tkinter when I run the following line of code
get = Button(root, lambda: ChangeColour(boxes[1][2], boxes[5][2],
main)).pack(fill = BOTH)
I get the following error
SyntaxError: non-keyword arg after keyword arg
Am I missing something, should I be binding the function differently?
EDIT: Stack trace below
File "C:/Users/07725172499/Documents/a.py", line 151
relief=RIDGE, lambda: ChangeColour(boxes[1][2], boxes[5][2], main)).pack(fill = BOTH)
^
SyntaxError: non-keyword arg after keyword arg
Process finished with exit code 1