I have a key pad in tkinter made of buttons, when clicked they add their number to a string "Amount Entered" which will be converted to a float at the end.
AmountEntered = ""
Number = tk.Button(self, text = "7", command = lambda AmountEntered: AmountEntered + "7")
Number.grid(row = 0, column = 0, sticky='nsew')
however when clicked, I get the error TypeError: () missing 1 required positional argument: 'AmountEntered'
I thought that the first AmountEntered would be the parameter, what does this refer to?