src/eric7/MicroPython/Devices/STLinkDevices.py

branch
eric7
changeset 11034
7b8a21fd2d58
parent 11006
a671918232f3
child 11090
f5f5f5803935
--- a/src/eric7/MicroPython/Devices/STLinkDevices.py	Sun Nov 03 12:34:02 2024 +0100
+++ b/src/eric7/MicroPython/Devices/STLinkDevices.py	Sun Nov 03 17:50:34 2024 +0100
@@ -419,7 +419,7 @@
         if self.microPython.isConnected():
             if self._deviceData["mpy_name"] != "micropython":
                 EricMessageBox.critical(
-                    None,
+                    self.microPython,
                     self.tr("Show MicroPython Versions"),
                     self.tr(
                         """The firmware of the connected device cannot be"""
@@ -466,7 +466,7 @@
             msg += self.tr("<p><b>Update available!</b></p>")
 
         EricMessageBox.information(
-            None,
+            self.microPython,
             self.tr("MicroPython Version"),
             msg,
         )

eric ide

mercurial