295 """ |
295 """ |
296 from .ShowOutdatedDialog import ShowOutdatedDialog |
296 from .ShowOutdatedDialog import ShowOutdatedDialog |
297 |
297 |
298 devicePath = self.__device.getWorkspace() |
298 devicePath = self.__device.getWorkspace() |
299 |
299 |
300 cpyVersion, board_id = circup.get_circuitpython_version(devicePath) |
300 cpyVersion, _board_id = circup.get_circuitpython_version(devicePath) |
301 circup.CPY_VERSION = cpyVersion |
301 circup.CPY_VERSION = cpyVersion |
302 |
302 |
303 with EricOverrideCursor(): |
303 with EricOverrideCursor(): |
304 dlg = ShowOutdatedDialog(devicePath=devicePath) |
304 dlg = ShowOutdatedDialog(devicePath=devicePath) |
305 dlg.exec() |
305 dlg.exec() |
311 """ |
311 """ |
312 from .ShowOutdatedDialog import ShowOutdatedDialog |
312 from .ShowOutdatedDialog import ShowOutdatedDialog |
313 |
313 |
314 devicePath = self.__device.getWorkspace() |
314 devicePath = self.__device.getWorkspace() |
315 |
315 |
316 cpyVersion, board_id = circup.get_circuitpython_version(devicePath) |
316 cpyVersion, _board_id = circup.get_circuitpython_version(devicePath) |
317 circup.CPY_VERSION = cpyVersion |
317 circup.CPY_VERSION = cpyVersion |
318 |
318 |
319 with EricOverrideCursor(): |
319 with EricOverrideCursor(): |
320 dlg = ShowOutdatedDialog(devicePath=devicePath, selectionMode=True) |
320 dlg = ShowOutdatedDialog(devicePath=devicePath, selectionMode=True) |
321 if dlg.exec() == QDialog.DialogCode.Accepted: |
321 if dlg.exec() == QDialog.DialogCode.Accepted: |
327 """ |
327 """ |
328 Private slot to update all modules of the connected device. |
328 Private slot to update all modules of the connected device. |
329 """ |
329 """ |
330 devicePath = self.__device.getWorkspace() |
330 devicePath = self.__device.getWorkspace() |
331 |
331 |
332 cpyVersion, board_id = circup.get_circuitpython_version(devicePath) |
332 cpyVersion, _board_id = circup.get_circuitpython_version(devicePath) |
333 circup.CPY_VERSION = cpyVersion |
333 circup.CPY_VERSION = cpyVersion |
334 |
334 |
335 with EricOverrideCursor(): |
335 with EricOverrideCursor(): |
336 modules = [ |
336 modules = [ |
337 m |
337 m |
526 @param installs list of module names to be installed |
526 @param installs list of module names to be installed |
527 @type list of str |
527 @type list of str |
528 """ |
528 """ |
529 devicePath = self.__device.getWorkspace() |
529 devicePath = self.__device.getWorkspace() |
530 |
530 |
531 cpyVersion, board_id = circup.get_circuitpython_version(devicePath) |
531 cpyVersion, _board_id = circup.get_circuitpython_version(devicePath) |
532 circup.CPY_VERSION = cpyVersion |
532 circup.CPY_VERSION = cpyVersion |
533 |
533 |
534 with EricOverrideCursor(): |
534 with EricOverrideCursor(): |
535 availableModules = circup.get_bundle_versions(circup.get_bundles_list()) |
535 availableModules = circup.get_bundle_versions(circup.get_bundles_list()) |
536 moduleNames = {} |
536 moduleNames = {} |
651 """ |
651 """ |
652 from .RequirementsDialog import RequirementsDialog |
652 from .RequirementsDialog import RequirementsDialog |
653 |
653 |
654 devicePath = self.__device.getWorkspace() |
654 devicePath = self.__device.getWorkspace() |
655 |
655 |
656 cpyVersion, board_id = circup.get_circuitpython_version(devicePath) |
656 cpyVersion, _board_id = circup.get_circuitpython_version(devicePath) |
657 circup.CPY_VERSION = cpyVersion |
657 circup.CPY_VERSION = cpyVersion |
658 |
658 |
659 dlg = RequirementsDialog(devicePath=devicePath) |
659 dlg = RequirementsDialog(devicePath=devicePath) |
660 dlg.exec() |
660 dlg.exec() |
661 |
661 |