449 available firmware version. |
449 available firmware version. |
450 """ |
450 """ |
451 if self.microPython.isConnected(): |
451 if self.microPython.isConnected(): |
452 if self._deviceData["mpy_name"] != "micropython": |
452 if self._deviceData["mpy_name"] != "micropython": |
453 EricMessageBox.critical( |
453 EricMessageBox.critical( |
454 None, |
454 self.microPython, |
455 self.tr("Show MicroPython Versions"), |
455 self.tr("Show MicroPython Versions"), |
456 self.tr( |
456 self.tr( |
457 """The firmware of the connected device cannot be""" |
457 """The firmware of the connected device cannot be""" |
458 """ determined or the board does not run MicroPython.""" |
458 """ determined or the board does not run MicroPython.""" |
459 """ Aborting...""" |
459 """ Aborting...""" |
496 ).format(currentVersionStr, tag) |
496 ).format(currentVersionStr, tag) |
497 if currentVersion < latestVersion: |
497 if currentVersion < latestVersion: |
498 msg += self.tr("<p><b>Update available!</b></p>") |
498 msg += self.tr("<p><b>Update available!</b></p>") |
499 |
499 |
500 EricMessageBox.information( |
500 EricMessageBox.information( |
501 None, |
501 self.microPython, |
502 self.tr("MicroPython Version"), |
502 self.tr("MicroPython Version"), |
503 msg, |
503 msg, |
504 ) |
504 ) |
505 |
505 |
506 @pyqtSlot() |
506 @pyqtSlot() |