eric7/MicroPython/EspFirmwareSelectionDialog.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8327
666c2b81cbb7
child 8358
144a6b854f70
equal deleted inserted replaced
8355:8a7677a63c8d 8356:68ec9c3d4de5
12 12
13 from PyQt6.QtCore import pyqtSlot, QRegularExpression 13 from PyQt6.QtCore import pyqtSlot, QRegularExpression
14 from PyQt6.QtGui import QRegularExpressionValidator 14 from PyQt6.QtGui import QRegularExpressionValidator
15 from PyQt6.QtWidgets import QDialog, QDialogButtonBox 15 from PyQt6.QtWidgets import QDialog, QDialogButtonBox
16 16
17 from E5Gui.E5PathPicker import E5PathPickerModes 17 from E5Gui.EricPathPicker import EricPathPickerModes
18 18
19 from .Ui_EspFirmwareSelectionDialog import Ui_EspFirmwareSelectionDialog 19 from .Ui_EspFirmwareSelectionDialog import Ui_EspFirmwareSelectionDialog
20 20
21 21
22 class EspFirmwareSelectionDialog(QDialog, Ui_EspFirmwareSelectionDialog): 22 class EspFirmwareSelectionDialog(QDialog, Ui_EspFirmwareSelectionDialog):
44 super().__init__(parent) 44 super().__init__(parent)
45 self.setupUi(self) 45 self.setupUi(self)
46 46
47 self.__addon = addon 47 self.__addon = addon
48 48
49 self.firmwarePicker.setMode(E5PathPickerModes.OPEN_FILE_MODE) 49 self.firmwarePicker.setMode(EricPathPickerModes.OPEN_FILE_MODE)
50 self.firmwarePicker.setFilters( 50 self.firmwarePicker.setFilters(
51 self.tr("Firmware Files (*.bin);;All Files (*)")) 51 self.tr("Firmware Files (*.bin);;All Files (*)"))
52 52
53 self.espComboBox.addItems(["", "ESP32", "ESP8266"]) 53 self.espComboBox.addItems(["", "ESP32", "ESP8266"])
54 54

eric ide

mercurial