I have two combo boxes, and this is my attempt to enable a button only when options in both boxes are selected.
However, when I select only one comboBox, the button will enable itself.
if self.page2.comboBox2.activated and self.page2.comboBox.activated:
self.page2.viewbutton.setEnabled(True)
else:
self.page2.viewbutton.setEnabled(False)