Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | psear |
I have a grid of 81 buttons, all of them perform a similar function, only differing slightly depending on which button was clicked, for example, clicking the button will set it’s text to “clicked”. I thought there was probably a way to have all of them signal to one function, but pass a different argument, something like this
button 1 - button_down connected to “action()” passing the argument “one”
button 2 - button_down connected to “action()” passing the argument “two”
etc…
But I’m not sure how to connect a lot of different signals to the same function, passing different arguments. How might I do this?