I made a groupbox contains many buttons i want to make loop which selects all the buttons inside that groupbox and i make if statment ; if button[number] is clicked.
def set_name():
for i in range(3):
button_name = "btn_" + str(i)
if(ui.button_name.clicked):
print("clicked")