I now know that to make a widget with tkinter with a command parameter with an argument I use lambda to do it. (e.g. Button(root, text="button", command=lambda: function(argument)))
But what if I want to pass in multiple arguments, or in my case right now two arguments?
When I just put it as lambda: function(argument1, argument2), it gives me an error saying:
TypeError: <lambda>() takes no arguments (1 given)
How should I do this?
The way of using lambdas with several arguments is:
see some examples here and here