src/eric7/MicroPython/MicroPythonWidget.py

branch
eric7
changeset 11006
a671918232f3
parent 11005
b918c6c2736b
child 11055
e68bcb2b5ec1
equal deleted inserted replaced
11005:b918c6c2736b 11006:a671918232f3
1485 dlg = EricProcessDialog( 1485 dlg = EricProcessDialog(
1486 self.tr("'mpy-cross' Output"), 1486 self.tr("'mpy-cross' Output"),
1487 title, 1487 title,
1488 monospacedFont=Preferences.getEditorOtherFonts("MonospacedFont"), 1488 monospacedFont=Preferences.getEditorOtherFonts("MonospacedFont"),
1489 encoding=Preferences.getSystem("IOEncoding"), 1489 encoding=Preferences.getSystem("IOEncoding"),
1490 parent=self,
1490 ) 1491 )
1491 res = dlg.startProcess(program, compileArgs) 1492 res = dlg.startProcess(program, compileArgs)
1492 if res: 1493 if res:
1493 dlg.exec() 1494 dlg.exec()
1494 1495
1608 sdlg = EricListSelectionDialog( 1609 sdlg = EricListSelectionDialog(
1609 [d[2] for d in devices], 1610 [d[2] for d in devices],
1610 title=self.tr("Add Unknown Devices"), 1611 title=self.tr("Add Unknown Devices"),
1611 message=self.tr("Select the devices to be added:"), 1612 message=self.tr("Select the devices to be added:"),
1612 checkBoxSelection=True, 1613 checkBoxSelection=True,
1614 parent=self,
1613 ) 1615 )
1614 if sdlg.exec() == QDialog.DialogCode.Accepted: 1616 if sdlg.exec() == QDialog.DialogCode.Accepted:
1615 selectedDevices = sdlg.getSelection() 1617 selectedDevices = sdlg.getSelection()
1616 else: 1618 else:
1617 selectedDevices = devices[0][2] 1619 selectedDevices = devices[0][2]

eric ide

mercurial