know which checkbox called the function (on_change) #964
-
Hi, suppose i have these checkboxes
checkbox_changed function is:
I need to know which checkbox called the function, to get the Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The event callback_fn = lambda e: checkbox_changed(kick_pattern, e.control.value)
...
ft.DataColumn(ft.Checkbox(value=False, on_change=callback_fn)),
... |
Beta Was this translation helpful? Give feedback.
The event
e
your lambdas catch will hold a reference to the control that emitted it. You could therefore do something like