# eric6.MicroPython.CircuitPythonFirmwareSelectionDialog

Module implementing a dialog to enter the firmware flashing data.

### Global Attributes

None

### Classes

CircuitPythonFirmwareSelectionDialog | Class implementing a dialog to enter the firmware flashing data.

### Functions

None

## CircuitPythonFirmwareSelectionDialog

Class implementing a dialog to enter the firmware flashing data.

### Derived from

QDialog, Ui_CircuitPythonFirmwareSelectionDialog

### Class Attributes

None

### Class Methods

None

### Methods

CircuitPythonFirmwareSelectionDialog | Constructor
__updateOkButton | Private method to update the state of the OK button and the retest button.
getData | Public method to obtain the entered data.
on_boardComboBox_currentIndexChanged | Private slot to handle the selection of a board type.
on_bootPicker_textChanged | Private slot handling a change of the device path.
on_firmwarePicker_textChanged | Private slot handling a change of the firmware path.
on_retestButton_clicked | Private slot to research for the selected volume.

### Static Methods

None

#### CircuitPythonFirmwareSelectionDialog (Constructor)

CircuitPythonFirmwareSelectionDialog(parent=None)

Constructor

parent (QWidget)
  reference to the parent widget

#### CircuitPythonFirmwareSelectionDialog.__updateOkButton

__updateOkButton()

Private method to update the state of the OK button and the retest button.

#### CircuitPythonFirmwareSelectionDialog.getData

getData()

Public method to obtain the entered data.

Returns:
  tuple containing the path to the CircuitPython firmware file and the path to the device

Return Type:
  tuple of (str, str)

#### CircuitPythonFirmwareSelectionDialog.on_boardComboBox_currentIndexChanged

on_boardComboBox_currentIndexChanged(index)

Private slot to handle the selection of a board type.

index (int)
  index of the selected board type

#### CircuitPythonFirmwareSelectionDialog.on_bootPicker_textChanged

on_bootPicker_textChanged(devicePath)

Private slot handling a change of the device path.

devicePath (str)
  path to the device

#### CircuitPythonFirmwareSelectionDialog.on_firmwarePicker_textChanged

on_firmwarePicker_textChanged(firmware)

Private slot handling a change of the firmware path.

firmware (str)
  path to the firmware

#### CircuitPythonFirmwareSelectionDialog.on_retestButton_clicked

on_retestButton_clicked()

Private slot to research for the selected volume.

Up