389 url = QUrl(FirmwareGithubUrls["micropython"]) |
389 url = QUrl(FirmwareGithubUrls["micropython"]) |
390 elif self._deviceData["mpy_name"] == "circuitpython": |
390 elif self._deviceData["mpy_name"] == "circuitpython": |
391 url = QUrl(FirmwareGithubUrls["circuitpython"]) |
391 url = QUrl(FirmwareGithubUrls["circuitpython"]) |
392 else: |
392 else: |
393 EricMessageBox.critical( |
393 EricMessageBox.critical( |
394 None, |
394 self.microPython, |
395 self.tr("Show MicroPython Versions"), |
395 self.tr("Show MicroPython Versions"), |
396 self.tr( |
396 self.tr( |
397 """The firmware of the connected device cannot be""" |
397 """The firmware of the connected device cannot be""" |
398 """ determined or the board does not run MicroPython""" |
398 """ determined or the board does not run MicroPython""" |
399 """ or CircuitPython. Aborting...""" |
399 """ or CircuitPython. Aborting...""" |
442 ).format(kind, currentVersionStr, tag) |
442 ).format(kind, currentVersionStr, tag) |
443 if currentVersion < latestVersion: |
443 if currentVersion < latestVersion: |
444 msg += self.tr("<p><b>Update available!</b></p>") |
444 msg += self.tr("<p><b>Update available!</b></p>") |
445 |
445 |
446 EricMessageBox.information( |
446 EricMessageBox.information( |
447 None, |
447 self.microPython, |
448 self.tr("{0} Version").format(kind), |
448 self.tr("{0} Version").format(kind), |
449 msg, |
449 msg, |
450 ) |
450 ) |
451 |
451 |
452 @pyqtSlot() |
452 @pyqtSlot() |