Skip to content
Advertisement

Tag: qpushbutton

Dynamically creating buttons and assigning click actions

I’m trying to practise by making a Pokedex. I’m trying to dynamically create a list of buttons inside of an OVBoxLayout based on the response from an API call. The list of buttons is generated correctly however, none of the buttons work, code below: The button.clicked.connect() doesn’t appear to be assigning the function to each button, anyone know why this

Advertisement