eric6/MicroPython/MicroPythonReplWidget.py

branch
micropython
changeset 7126
376deb7fefe7
parent 7123
94948e2aa0a5
child 7127
aa6fc2d252ad
equal deleted inserted replaced
7125:2028553ee58c 7126:376deb7fefe7
305 @return reference to the commands interface object 305 @return reference to the commands interface object
306 @rtype MicroPythonCommandsInterface 306 @rtype MicroPythonCommandsInterface
307 """ 307 """
308 return self.__interface 308 return self.__interface
309 309
310 def isMicrobit(self):
311 """
312 Public method to check, if the connected/selected device is a
313 BBC micro:bit.
314
315 @return flag indicating a micro:bit device
316 rtype bool
317 """
318 if self.__device and "micro:bit" in self.__device.deviceName():
319 return True
320
321 return False
322
310 @pyqtSlot(int) 323 @pyqtSlot(int)
311 def on_deviceTypeComboBox_activated(self, index): 324 def on_deviceTypeComboBox_activated(self, index):
312 """ 325 """
313 Private slot handling the selection of a device type. 326 Private slot handling the selection of a device type.
314 327

eric ide

mercurial