src/eric7/MicroPython/MicroPythonDeviceInterface.py

branch
eric7
changeset 10229
e50bbf250343
parent 10012
d649d500a9a1
child 10439
21c28b0f9e41
diff -r 74c6150aa745 -r e50bbf250343 src/eric7/MicroPython/MicroPythonDeviceInterface.py
--- a/src/eric7/MicroPython/MicroPythonDeviceInterface.py	Thu Oct 05 17:07:35 2023 +0200
+++ b/src/eric7/MicroPython/MicroPythonDeviceInterface.py	Fri Oct 06 15:52:33 2023 +0200
@@ -37,15 +37,14 @@
         """
         super().__init__(parent)
 
-    @pyqtSlot()
     def connectToDevice(self, connection):
         """
-        Public slot to connect to the device.
+        Public method to connect to the device.
 
         @param connection name of the connection to be used
         @type str
-        @return flag indicating success
-        @rtype bool
+        @return flag indicating success and an error message
+        @rtype tuple of (bool, str)
         @exception NotImplementedError raised to indicate that this method needs to
             be implemented in a derived class
         """
@@ -53,7 +52,7 @@
             "This method needs to be implemented in a derived class."
         )
 
-        return False
+        return False, ""
 
     @pyqtSlot()
     def disconnectFromDevice(self):

eric ide

mercurial