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. |