src/eric7/MicroPython/Devices/EspDevices.py

branch
eric7
changeset 10933
95a15b70f7bb
parent 10806
2f6df822e3b9
child 11005
b918c6c2736b
equal deleted inserted replaced
10932:82de5109035a 10933:95a15b70f7bb
309 ] 309 ]
310 dlg = EricProcessDialog( 310 dlg = EricProcessDialog(
311 self.tr("'esptool read_flash' Output"), 311 self.tr("'esptool read_flash' Output"),
312 self.tr("Backup Firmware"), 312 self.tr("Backup Firmware"),
313 showProgress=True, 313 showProgress=True,
314 monospacedFont=Preferences.getEditorOtherFonts("MonospacedFont"),
315 encoding=Preferences.getSystem("IOEncoding"),
314 ) 316 )
315 res = dlg.startProcess(PythonUtilities.getPythonExecutable(), flashArgs) 317 res = dlg.startProcess(PythonUtilities.getPythonExecutable(), flashArgs)
316 if res: 318 if res:
317 dlg.exec() 319 dlg.exec()
318 320
362 ) 364 )
363 dlg = EricProcessDialog( 365 dlg = EricProcessDialog(
364 self.tr("'esptool write_flash' Output"), 366 self.tr("'esptool write_flash' Output"),
365 self.tr("Restore Firmware"), 367 self.tr("Restore Firmware"),
366 showProgress=True, 368 showProgress=True,
369 monospacedFont=Preferences.getEditorOtherFonts("MonospacedFont"),
370 encoding=Preferences.getSystem("IOEncoding"),
367 ) 371 )
368 res = dlg.startProcess(PythonUtilities.getPythonExecutable(), flashArgs) 372 res = dlg.startProcess(PythonUtilities.getPythonExecutable(), flashArgs)
369 if res: 373 if res:
370 dlg.exec() 374 dlg.exec()
371 375
455 "--port", 459 "--port",
456 self.microPython.getCurrentPort(), 460 self.microPython.getCurrentPort(),
457 "chip_id", 461 "chip_id",
458 ] 462 ]
459 dlg = EricProcessDialog( 463 dlg = EricProcessDialog(
460 self.tr("'esptool chip_id' Output"), self.tr("Show Chip ID") 464 self.tr("'esptool chip_id' Output"),
465 self.tr("Show Chip ID"),
466 monospacedFont=Preferences.getEditorOtherFonts("MonospacedFont"),
467 encoding=Preferences.getSystem("IOEncoding"),
461 ) 468 )
462 res = dlg.startProcess(PythonUtilities.getPythonExecutable(), args) 469 res = dlg.startProcess(PythonUtilities.getPythonExecutable(), args)
463 if res: 470 if res:
464 dlg.exec() 471 dlg.exec()
465 472
475 "--port", 482 "--port",
476 self.microPython.getCurrentPort(), 483 self.microPython.getCurrentPort(),
477 "flash_id", 484 "flash_id",
478 ] 485 ]
479 dlg = EricProcessDialog( 486 dlg = EricProcessDialog(
480 self.tr("'esptool flash_id' Output"), self.tr("Show Flash ID") 487 self.tr("'esptool flash_id' Output"),
488 self.tr("Show Flash ID"),
489 monospacedFont=Preferences.getEditorOtherFonts("MonospacedFont"),
490 encoding=Preferences.getSystem("IOEncoding"),
481 ) 491 )
482 res = dlg.startProcess(PythonUtilities.getPythonExecutable(), args) 492 res = dlg.startProcess(PythonUtilities.getPythonExecutable(), args)
483 if res: 493 if res:
484 dlg.exec() 494 dlg.exec()
485 495
495 "--port", 505 "--port",
496 self.microPython.getCurrentPort(), 506 self.microPython.getCurrentPort(),
497 "read_mac", 507 "read_mac",
498 ] 508 ]
499 dlg = EricProcessDialog( 509 dlg = EricProcessDialog(
500 self.tr("'esptool read_mac' Output"), self.tr("Show MAC Address") 510 self.tr("'esptool read_mac' Output"),
511 self.tr("Show MAC Address"),
512 monospacedFont=Preferences.getEditorOtherFonts("MonospacedFont"),
513 encoding=Preferences.getSystem("IOEncoding"),
501 ) 514 )
502 res = dlg.startProcess(PythonUtilities.getPythonExecutable(), args) 515 res = dlg.startProcess(PythonUtilities.getPythonExecutable(), args)
503 if res: 516 if res:
504 dlg.exec() 517 dlg.exec()
505 518
1759 ] 1772 ]
1760 dlg = EricProcessDialog( 1773 dlg = EricProcessDialog(
1761 QCoreApplication.translate("EspDevice", "'esptool erase_flash' Output"), 1774 QCoreApplication.translate("EspDevice", "'esptool erase_flash' Output"),
1762 QCoreApplication.translate("EspDevice", "Erase Flash"), 1775 QCoreApplication.translate("EspDevice", "Erase Flash"),
1763 showProgress=True, 1776 showProgress=True,
1777 monospacedFont=Preferences.getEditorOtherFonts("MonospacedFont"),
1778 encoding=Preferences.getSystem("IOEncoding"),
1764 ) 1779 )
1765 res = dlg.startProcess(PythonUtilities.getPythonExecutable(), flashArgs) 1780 res = dlg.startProcess(PythonUtilities.getPythonExecutable(), flashArgs)
1766 if res: 1781 if res:
1767 dlg.exec() 1782 dlg.exec()
1768 1783
1803 ] 1818 ]
1804 dlg = EricProcessDialog( 1819 dlg = EricProcessDialog(
1805 QCoreApplication.translate("EspDevice", "'esptool write_flash' Output"), 1820 QCoreApplication.translate("EspDevice", "'esptool write_flash' Output"),
1806 QCoreApplication.translate("EspDevice", "Flash µPy/CPy Firmware"), 1821 QCoreApplication.translate("EspDevice", "Flash µPy/CPy Firmware"),
1807 showProgress=True, 1822 showProgress=True,
1823 monospacedFont=Preferences.getEditorOtherFonts("MonospacedFont"),
1824 encoding=Preferences.getSystem("IOEncoding"),
1808 ) 1825 )
1809 res = dlg.startProcess(PythonUtilities.getPythonExecutable(), flashArgs) 1826 res = dlg.startProcess(PythonUtilities.getPythonExecutable(), flashArgs)
1810 if res: 1827 if res:
1811 dlg.exec() 1828 dlg.exec()
1812 1829
1844 ] 1861 ]
1845 dlg = EricProcessDialog( 1862 dlg = EricProcessDialog(
1846 QCoreApplication.translate("EspDevice", "'esptool write_flash' Output"), 1863 QCoreApplication.translate("EspDevice", "'esptool write_flash' Output"),
1847 QCoreApplication.translate("EspDevice", "Flash Additional Firmware"), 1864 QCoreApplication.translate("EspDevice", "Flash Additional Firmware"),
1848 showProgress=True, 1865 showProgress=True,
1866 monospacedFont=Preferences.getEditorOtherFonts("MonospacedFont"),
1867 encoding=Preferences.getSystem("IOEncoding"),
1849 ) 1868 )
1850 res = dlg.startProcess(PythonUtilities.getPythonExecutable(), flashArgs) 1869 res = dlg.startProcess(PythonUtilities.getPythonExecutable(), flashArgs)
1851 if res: 1870 if res:
1852 dlg.exec() 1871 dlg.exec()

eric ide

mercurial