74 firmwareFile = self.firmwarePicker.text() |
74 firmwareFile = self.firmwarePicker.text() |
75 enable = (bool(self.espComboBox.currentText()) and |
75 enable = (bool(self.espComboBox.currentText()) and |
76 bool(firmwareFile) and os.path.exists(firmwareFile)) |
76 bool(firmwareFile) and os.path.exists(firmwareFile)) |
77 if self.__addon: |
77 if self.__addon: |
78 enable &= bool(self.addressEdit.text()) |
78 enable &= bool(self.addressEdit.text()) |
79 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable) |
79 self.buttonBox.button( |
|
80 QDialogButtonBox.StandardButton.Ok).setEnabled(enable) |
80 |
81 |
81 @pyqtSlot(str) |
82 @pyqtSlot(str) |
82 def on_espComboBox_currentTextChanged(self, chip): |
83 def on_espComboBox_currentTextChanged(self, chip): |
83 """ |
84 """ |
84 Private slot to handle the selection of a chip type. |
85 Private slot to handle the selection of a chip type. |