184 available firmware version. |
184 available firmware version. |
185 """ |
185 """ |
186 if self.microPython.isConnected(): |
186 if self.microPython.isConnected(): |
187 if self._deviceData["mpy_name"] != "micropython": |
187 if self._deviceData["mpy_name"] != "micropython": |
188 EricMessageBox.critical( |
188 EricMessageBox.critical( |
189 None, |
189 self.microPython, |
190 self.tr("Show MicroPython Versions"), |
190 self.tr("Show MicroPython Versions"), |
191 self.tr( |
191 self.tr( |
192 """The firmware of the connected device cannot be""" |
192 """The firmware of the connected device cannot be""" |
193 """ determined or the board does not run MicroPython.""" |
193 """ determined or the board does not run MicroPython.""" |
194 """ Aborting...""" |
194 """ Aborting...""" |
231 ).format(currentVersionStr, tag) |
231 ).format(currentVersionStr, tag) |
232 if currentVersion < latestVersion: |
232 if currentVersion < latestVersion: |
233 msg += self.tr("<p><b>Update available!</b></p>") |
233 msg += self.tr("<p><b>Update available!</b></p>") |
234 |
234 |
235 EricMessageBox.information( |
235 EricMessageBox.information( |
236 None, |
236 self.microPython, |
237 self.tr("MicroPython Version"), |
237 self.tr("MicroPython Version"), |
238 msg, |
238 msg, |
239 ) |
239 ) |
240 |
240 |
241 @pyqtSlot() |
241 @pyqtSlot() |