As an alternative to hexor’s idea of having one callback that figures out which button was clicked, you could simply create a separate callback for each button. Here’s an example of doing that in a loop More sliders! (help with button callback example)