eric6/MicroPython/EspDevices.py

changeset 8143
2c730d5fd177
parent 8119
1653972f2de5
child 8181
72f55caf6258
--- a/eric6/MicroPython/EspDevices.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/MicroPython/EspDevices.py	Tue Mar 02 17:17:09 2021 +0100
@@ -200,7 +200,7 @@
         """
         from .EspFirmwareSelectionDialog import EspFirmwareSelectionDialog
         dlg = EspFirmwareSelectionDialog()
-        if dlg.exec() == QDialog.Accepted:
+        if dlg.exec() == QDialog.DialogCode.Accepted:
             chip, firmware, flashMode, _ = dlg.getData()
             if chip == "esp8266":
                 flashAddress = "0x0000"
@@ -238,7 +238,7 @@
         """
         from .EspFirmwareSelectionDialog import EspFirmwareSelectionDialog
         dlg = EspFirmwareSelectionDialog(addon=True)
-        if dlg.exec() == QDialog.Accepted:
+        if dlg.exec() == QDialog.DialogCode.Accepted:
             chip, firmware, flashMode, flashAddress = dlg.getData()
             flashArgs = [
                 "-u",
@@ -271,7 +271,7 @@
             EspBackupRestoreFirmwareDialog
         )
         dlg = EspBackupRestoreFirmwareDialog(backupMode=True)
-        if dlg.exec() == QDialog.Accepted:
+        if dlg.exec() == QDialog.DialogCode.Accepted:
             chip, flashSize, flashMode, firmware = dlg.getData()
             flashArgs = [
                 "-u",
@@ -298,7 +298,7 @@
             EspBackupRestoreFirmwareDialog
         )
         dlg = EspBackupRestoreFirmwareDialog(backupMode=False)
-        if dlg.exec() == QDialog.Accepted:
+        if dlg.exec() == QDialog.DialogCode.Accepted:
             chip, flashSize, flashMode, firmware = dlg.getData()
             flashArgs = [
                 "-u",

eric ide

mercurial