I write a simple lambda function callback when I enter something into entry with the following code:
self.myEntryWidget[0].trace('w', lambda frozen_command=self.getMiniumTokenReceive: frozen_command(b_index))
And the callback function is:
def getMiniumTokenReceive(self, b_index: int, *args):
price = self.myEntryWidget[b_index].get()
print(price)
But it gives an error
<lambda>() takes from 0 to 1 positional arguments but 3 were given.
Is there anyway that I can pass a function with parameters as a callback into my StringVar trace ?