256 available firmware version. |
256 available firmware version. |
257 """ |
257 """ |
258 if self.microPython.isConnected(): |
258 if self.microPython.isConnected(): |
259 if self._deviceData["mpy_name"] != "micropython": |
259 if self._deviceData["mpy_name"] != "micropython": |
260 EricMessageBox.critical( |
260 EricMessageBox.critical( |
261 None, |
261 self.microPython, |
262 self.tr("Show MicroPython Versions"), |
262 self.tr("Show MicroPython Versions"), |
263 self.tr( |
263 self.tr( |
264 """The firmware of the connected device cannot be""" |
264 """The firmware of the connected device cannot be""" |
265 """ determined or the board does not run MicroPython.""" |
265 """ determined or the board does not run MicroPython.""" |
266 """ Aborting...""" |
266 """ Aborting...""" |
328 msg += self.tr("<p>Update may be available.</p>") |
328 msg += self.tr("<p>Update may be available.</p>") |
329 elif currentVersion < latestVersion: |
329 elif currentVersion < latestVersion: |
330 msg += self.tr("<p><b>Update available!</b></p>") |
330 msg += self.tr("<p><b>Update available!</b></p>") |
331 |
331 |
332 EricMessageBox.information( |
332 EricMessageBox.information( |
333 None, |
333 self.microPython, |
334 self.tr("MicroPython Version"), |
334 self.tr("MicroPython Version"), |
335 msg, |
335 msg, |
336 ) |
336 ) |
337 |
337 |
338 @pyqtSlot() |
338 @pyqtSlot() |