--- a/src/eric7/MicroPython/Devices/CircuitPythonUpdater/CircuitPythonUpdaterInterface.py Fri Oct 25 08:42:57 2024 +0200 +++ b/src/eric7/MicroPython/Devices/CircuitPythonUpdater/CircuitPythonUpdaterInterface.py Fri Oct 25 09:47:48 2024 +0200 @@ -166,7 +166,9 @@ from .ShowBundlesDialog import ShowBundlesDialog with EricOverrideCursor(): - dlg = ShowBundlesDialog(withModules=withModules) + dlg = ShowBundlesDialog( + withModules=withModules, parent=self.__device.microPython + ) dlg.exec() @pyqtSlot() @@ -301,7 +303,9 @@ circup.CPY_VERSION = cpyVersion with EricOverrideCursor(): - dlg = ShowOutdatedDialog(devicePath=devicePath) + dlg = ShowOutdatedDialog( + devicePath=devicePath, parent=self.__device.microPython + ) dlg.exec() @pyqtSlot() @@ -317,7 +321,11 @@ circup.CPY_VERSION = cpyVersion with EricOverrideCursor(): - dlg = ShowOutdatedDialog(devicePath=devicePath, selectionMode=True) + dlg = ShowOutdatedDialog( + devicePath=devicePath, + selectionMode=True, + parent=self.__device.microPython, + ) if dlg.exec() == QDialog.DialogCode.Accepted: modules = dlg.getSelection() self.__doUpdateModules(modules) @@ -399,7 +407,7 @@ availableModules = circup.get_bundle_versions(circup.get_bundles_list()) moduleNames = [m.replace(".py", "") for m in availableModules] - dlg = ShowModulesDialog(moduleNames) + dlg = ShowModulesDialog(moduleNames, parent=self.__device.microPython) dlg.exec() @pyqtSlot() @@ -412,7 +420,9 @@ devicePath = self.__device.getWorkspace() with EricOverrideCursor(): - dlg = ShowInstalledDialog(devicePath=devicePath) + dlg = ShowInstalledDialog( + devicePath=devicePath, parent=self.__device.microPython + ) dlg.exec() @pyqtSlot() @@ -426,7 +436,9 @@ availableModules = circup.get_bundle_versions(circup.get_bundles_list()) moduleNames = [m.replace(".py", "") for m in availableModules] - dlg = ShowModulesDialog(moduleNames, selectionMode=True) + dlg = ShowModulesDialog( + moduleNames, selectionMode=True, parent=self.__device.microPython + ) if dlg.exec() == QDialog.DialogCode.Accepted: modules = dlg.getSelection() self.__installModules(modules) @@ -658,7 +670,9 @@ cpyVersion, _board_id = circup.get_circuitpython_version(devicePath) circup.CPY_VERSION = cpyVersion - dlg = RequirementsDialog(devicePath=devicePath) + dlg = RequirementsDialog( + devicePath=devicePath, parent=self.__device.microPython + ) dlg.exec() @pyqtSlot()