src/eric7/MicroPython/MicroPythonWidget.py

branch
eric7
changeset 11186
c2d18aefef6b
parent 11184
33a600dd86f4
child 11215
d07c71a34adf
equal deleted inserted replaced
11185:a6f70425f5be 11186:c2d18aefef6b
380 BBC micro:bit or Calliope mini. 380 BBC micro:bit or Calliope mini.
381 381
382 @return flag indicating a micro:bit device 382 @return flag indicating a micro:bit device
383 @rtype bool 383 @rtype bool
384 """ 384 """
385 if ( 385 return self.__device and self.__device.isMicrobit()
386 self.__device
387 and (
388 "micro:bit" in self.__device.deviceName()
389 or "Calliope" in self.__device.deviceName()
390 )
391 and not self.__device.hasCircuitPython()
392 ):
393 return True
394
395 return False
396 386
397 @pyqtSlot(int) 387 @pyqtSlot(int)
398 def on_deviceTypeComboBox_activated(self, index): 388 def on_deviceTypeComboBox_activated(self, index):
399 """ 389 """
400 Private slot handling the selection of a device type. 390 Private slot handling the selection of a device type.

eric ide

mercurial