Using lambda expression to connect slots in pyqt

I am trying to connect slots with lambda functions, but it’s not working the way I expect. In the code below, I succeed in connecting the first two buttons correctly. For the second two, which I connect in a loop, this goes wrong. Someone before me had the same question (Qt – Connect slot with argument using lambda), but this solution doesn’t work for me. I’ve been staring at my screen for a half hour, but I can’t figure out how my code is different.