Hi,
I have two TextInput widgets that call the same function the only difference is which of the 2 Textinput is calling it which I can easily achieve by passing an additional argument to the callback. Something like:
The function passed to on_change always has to have the fixed set of known parameters. That’s generally how callback-based frameworks have to be, since it is the framework that executes the callback function, not you.
However, you can define a function that takes extra parameters and then use the standard library functools.partial to “bake in” values for the additional arguments before you call on_change (and specifically, you can bake in different values for different calls to on_change).