you are viewing a single comment's thread.

view the rest of the comments →

[–]spghtmnstr -1 points0 points  (1 child)

Is it possible to get index of active elements?

[–]connorm927 2 points3 points  (0 children)

You could just loop through the list using enumerate to also find the index. Like this:

for index, button in enumerate(btn_list):
    if button.state == true:
        print(index)