src/eric7/MicroPython/UF2FlashDialog.py

branch
eric7
changeset 11054
38ffc8fbc782
parent 11053
5f044e09aba5
child 11090
f5f5f5803935
equal deleted inserted replaced
11053:5f044e09aba5 11054:38ffc8fbc782
1273 elif len(foundBootVolumes) == 1: 1273 elif len(foundBootVolumes) == 1:
1274 selectedVolume = [*foundBootVolumes][0] 1274 selectedVolume = [*foundBootVolumes][0]
1275 else: 1275 else:
1276 result, ok = QInputDialog.getItem( 1276 result, ok = QInputDialog.getItem(
1277 self, 1277 self,
1278 QCoreApplication.translate("UF2FlashDialog", "Flash UF2 Device"), 1278 self.tr("Flash UF2 Device"),
1279 QCoreApplication.translate( 1279 self.tr("Select the Boot Volume of the device:"),
1280 "UF2FlashDialog", "Select the Boot Volume of the device:"
1281 ),
1282 [*foundBootVolumes], 1280 [*foundBootVolumes],
1283 0, 1281 0,
1284 True, 1282 True,
1285 ) 1283 )
1286 selectedVolume = result if ok else "" 1284 selectedVolume = result if ok else ""

eric ide

mercurial