self.radio1 = QRadioButton("Visa", self) #we will add this radio button directly to our window. that would be 'self' self.radio2 = QRadioButton("Master", self) self ...
self.setGeometry(700, 300, 500, 500) # (x, y, width, height) self.radio1.toggled.connect(self.radio_button_change) self.radio2.toggled.connect(self.radio_button ...