eric6/MicroPython/EspFirmwareSelectionDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8181
72f55caf6258
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
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.

eric ide

mercurial