417 available firmware version. |
417 available firmware version. |
418 """ |
418 """ |
419 if self.microPython.isConnected(): |
419 if self.microPython.isConnected(): |
420 if self._deviceData["mpy_name"] != "micropython": |
420 if self._deviceData["mpy_name"] != "micropython": |
421 EricMessageBox.critical( |
421 EricMessageBox.critical( |
422 None, |
422 self.microPython, |
423 self.tr("Show MicroPython Versions"), |
423 self.tr("Show MicroPython Versions"), |
424 self.tr( |
424 self.tr( |
425 """The firmware of the connected device cannot be""" |
425 """The firmware of the connected device cannot be""" |
426 """ determined or the board does not run MicroPython.""" |
426 """ determined or the board does not run MicroPython.""" |
427 """ Aborting...""" |
427 """ Aborting...""" |
464 ).format(currentVersionStr, tag) |
464 ).format(currentVersionStr, tag) |
465 if currentVersion < latestVersion: |
465 if currentVersion < latestVersion: |
466 msg += self.tr("<p><b>Update available!</b></p>") |
466 msg += self.tr("<p><b>Update available!</b></p>") |
467 |
467 |
468 EricMessageBox.information( |
468 EricMessageBox.information( |
469 None, |
469 self.microPython, |
470 self.tr("MicroPython Version"), |
470 self.tr("MicroPython Version"), |
471 msg, |
471 msg, |
472 ) |
472 ) |
473 |
473 |
474 @pyqtSlot() |
474 @pyqtSlot() |