src/eric7/MicroPython/RP2040Devices.py

branch
eric7
changeset 9748
df9520c864f2
parent 9747
b7976868d5b0
child 9749
5d409223cf3f
equal deleted inserted replaced
9747:b7976868d5b0 9748:df9520c864f2
195 url = QUrl(FirmwareGithubUrls["micropython"]) 195 url = QUrl(FirmwareGithubUrls["micropython"])
196 ui = ericApp().getObject("UserInterface") 196 ui = ericApp().getObject("UserInterface")
197 request = QNetworkRequest(url) 197 request = QNetworkRequest(url)
198 reply = ui.networkAccessManager().head(request) 198 reply = ui.networkAccessManager().head(request)
199 reply.finished.connect( 199 reply.finished.connect(
200 lambda: self.__firmwareVersionResponse( 200 lambda: self.__firmwareVersionResponse(reply, impInfo)
201 reply, impInfo
202 )
203 ) 201 )
204 202
205 def __firmwareVersionResponse(self, reply, implementation): 203 def __firmwareVersionResponse(self, reply, implementation):
206 """ 204 """
207 Private method handling the response of the latest version request. 205 Private method handling the response of the latest version request.
273 ( 271 (
274 self.tr("MicroPython Firmware"), 272 self.tr("MicroPython Firmware"),
275 Preferences.getMicroPython("MicroPythonFirmwareUrl"), 273 Preferences.getMicroPython("MicroPythonFirmwareUrl"),
276 ), 274 ),
277 ("<separator>", ""), 275 ("<separator>", ""),
278 ( 276 (self.tr("Pimoroni Pico Firmware"), FirmwareGithubUrls["pimoroni_pico"]),
279 self.tr("Pimoroni Pico Firmware"), FirmwareGithubUrls["pimoroni_pico"]
280 ),
281 ("<separator>", ""), 277 ("<separator>", ""),
282 ( 278 (
283 self.tr("CircuitPython Firmware"), 279 self.tr("CircuitPython Firmware"),
284 Preferences.getMicroPython("CircuitPythonFirmwareUrl"), 280 Preferences.getMicroPython("CircuitPythonFirmwareUrl"),
285 ), 281 ),

eric ide

mercurial