eric6/MicroPython/EspBackupRestoreFirmwareDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
93 bool(firmwareFile)) 93 bool(firmwareFile))
94 if self.__isBackupMode: 94 if self.__isBackupMode:
95 enable &= bool(self.sizeComboBox.currentText()) 95 enable &= bool(self.sizeComboBox.currentText())
96 else: 96 else:
97 enable &= os.path.exists(firmwareFile) 97 enable &= os.path.exists(firmwareFile)
98 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable) 98 self.buttonBox.button(
99 QDialogButtonBox.StandardButton.Ok).setEnabled(enable)
99 100
100 @pyqtSlot(str) 101 @pyqtSlot(str)
101 def on_espComboBox_currentTextChanged(self, chip): 102 def on_espComboBox_currentTextChanged(self, chip):
102 """ 103 """
103 Private slot to handle the selection of a chip type. 104 Private slot to handle the selection of a chip type.

eric ide

mercurial