56 """ |
56 """ |
57 enable = bool(self.nameEdit.text()) and bool(self.condaNameEdit.text()) |
57 enable = bool(self.nameEdit.text()) and bool(self.condaNameEdit.text()) |
58 if self.__requirementsMode: |
58 if self.__requirementsMode: |
59 enable &= bool(self.requirementsFilePicker.text()) |
59 enable &= bool(self.requirementsFilePicker.text()) |
60 |
60 |
61 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable) |
61 self.buttonBox.button( |
|
62 QDialogButtonBox.StandardButton.Ok).setEnabled(enable) |
62 |
63 |
63 @pyqtSlot(str) |
64 @pyqtSlot(str) |
64 def on_nameEdit_textChanged(self, txt): |
65 def on_nameEdit_textChanged(self, txt): |
65 """ |
66 """ |
66 Private slot to handle changes of the logical name. |
67 Private slot to handle changes of the logical name. |