130 Public method to instantiate a specific MicroPython device interface. |
130 Public method to instantiate a specific MicroPython device interface. |
131 |
131 |
132 @param deviceType type of the device interface |
132 @param deviceType type of the device interface |
133 @type str |
133 @type str |
134 @param microPythonWidget reference to the main MicroPython widget |
134 @param microPythonWidget reference to the main MicroPython widget |
135 @type MicroPythonReplWidget |
135 @type MicroPythonWidget |
136 @return instantiated device interface |
136 @return instantiated device interface |
137 @rtype MicroPythonDevice |
137 @rtype MicroPythonDevice |
138 """ |
138 """ |
139 if deviceType == "esp": |
139 if deviceType == "esp": |
140 from .EspDevices import EspDevice |
140 from .EspDevices import EspDevice |
157 def __init__(self, microPythonWidget, parent=None): |
157 def __init__(self, microPythonWidget, parent=None): |
158 """ |
158 """ |
159 Constructor |
159 Constructor |
160 |
160 |
161 @param microPythonWidget reference to the main MicroPython widget |
161 @param microPythonWidget reference to the main MicroPython widget |
162 @type MicroPythonReplWidget |
162 @type MicroPythonWidget |
163 @param parent reference to the parent object |
163 @param parent reference to the parent object |
164 @type QObject |
164 @type QObject |
165 """ |
165 """ |
166 super(MicroPythonDevice, self).__init__(parent) |
166 super(MicroPythonDevice, self).__init__(parent) |
167 |
167 |