37 |
37 |
38 def __updateOK(self): |
38 def __updateOK(self): |
39 """ |
39 """ |
40 Private slot to update the state of the OK button. |
40 Private slot to update the state of the OK button. |
41 """ |
41 """ |
42 enable = self.allCheckBox.isChecked() or \ |
42 enable = ( |
|
43 self.allCheckBox.isChecked() or |
43 len(self.submodulesList.selectedItems()) > 0 |
44 len(self.submodulesList.selectedItems()) > 0 |
|
45 ) |
44 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable) |
46 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable) |
45 |
47 |
46 @pyqtSlot(bool) |
48 @pyqtSlot(bool) |
47 def on_allCheckBox_toggled(self, checked): |
49 def on_allCheckBox_toggled(self, checked): |
48 """ |
50 """ |