This is pretty ham-fisted but has the benefit of being simple and robust:
or you could whip up a small macro:
For something a tad more complex, I’d wrap each button in a separate widget, create a [ Button | Int ] Map and make the button widgets dispatch themselves to look up their mapped indexes in the parent.

