I'm programming a wizard with PyQt. On the first page I want to give the user the choice to choose two times between two options. Therefore I decided to make to Buttongroups. But though I added the first two radio buttons to the first Buttongroup and the other two to the second, the buttons are still exclusive (I can only choose one button on the page).
Here is my code:
# Setup UI
layout = QtGui.QVBoxLayout()
gBBackupFromIntExt = QtGui.QGroupBox()
layout.addWidget(gBBackupFromIntExt)
bGBackupFromIntExt = QtGui.QButtonGroup()
self.rBBackupFromExt = QtGui.QRadioButton()
bGBackupFromIntExt.addButton (self.rBBackupFromExt)
layout.addWidget(self.rBBackupFromExt)
self.rBBackupFromInt = QtGui.QRadioButton()
bGBackupFromIntExt.addButton (self.rBBackupFromInt)
layout.addWidget(self.rBBackupFromInt)
gBBackupToIntExt = QtGui.QGroupBox()
layout.addWidget(gBBackupToIntExt)
bGBackupToIntExt = QtGui.QButtonGroup()
self.rBBackupToExt = QtGui.QRadioButton()
bGBackupToIntExt.addButton (self.rBBackupToExt)
layout.addWidget(self.rBBackupToExt)
self.rBBackupToInt = QtGui.QRadioButton()
bGBackupToIntExt.addButton (self.rBBackupToInt)
layout.addWidget(self.rBBackupToInt)
Do you have any idea where's my mistake and what I have to change?