463 menu.addAction(self.tr("Clear"), self.__clear) |
463 menu.addAction(self.tr("Clear"), self.__clear) |
464 menu.addSeparator() |
464 menu.addSeparator() |
465 menu.addAction(self.tr("Copy"), self.replEdit.copy, copyKeys) |
465 menu.addAction(self.tr("Copy"), self.replEdit.copy, copyKeys) |
466 menu.addAction(self.tr("Paste"), self.__paste, pasteKeys) |
466 menu.addAction(self.tr("Paste"), self.__paste, pasteKeys) |
467 menu.addSeparator() |
467 menu.addSeparator() |
468 menu.exec_(self.replEdit.mapToGlobal(pos)) |
468 menu.exec(self.replEdit.mapToGlobal(pos)) |
469 |
469 |
470 def __setConnected(self, connected): |
470 def __setConnected(self, connected): |
471 """ |
471 """ |
472 Private method to set the connection status LED. |
472 Private method to set the connection status LED. |
473 |
473 |
1485 pythonFile, |
1485 pythonFile, |
1486 ] |
1486 ] |
1487 dlg = E5ProcessDialog(self.tr("'mpy-cross' Output"), title) |
1487 dlg = E5ProcessDialog(self.tr("'mpy-cross' Output"), title) |
1488 res = dlg.startProcess(program, compileArgs) |
1488 res = dlg.startProcess(program, compileArgs) |
1489 if res: |
1489 if res: |
1490 dlg.exec_() |
1490 dlg.exec() |
1491 |
1491 |
1492 @pyqtSlot() |
1492 @pyqtSlot() |
1493 def __compileFile2Mpy(self): |
1493 def __compileFile2Mpy(self): |
1494 """ |
1494 """ |
1495 Private slot to cross compile a Python file (*.py) to a .mpy file. |
1495 Private slot to cross compile a Python file (*.py) to a .mpy file. |
1551 from .IgnoredDevicesDialog import IgnoredDevicesDialog |
1551 from .IgnoredDevicesDialog import IgnoredDevicesDialog |
1552 |
1552 |
1553 dlg = IgnoredDevicesDialog( |
1553 dlg = IgnoredDevicesDialog( |
1554 Preferences.getMicroPython("IgnoredUnknownDevices"), |
1554 Preferences.getMicroPython("IgnoredUnknownDevices"), |
1555 self) |
1555 self) |
1556 if dlg.exec_() == QDialog.Accepted: |
1556 if dlg.exec() == QDialog.Accepted: |
1557 ignoredDevices = dlg.getDevices() |
1557 ignoredDevices = dlg.getDevices() |
1558 Preferences.setMicroPython("IgnoredUnknownDevices", |
1558 Preferences.setMicroPython("IgnoredUnknownDevices", |
1559 ignoredDevices) |
1559 ignoredDevices) |
1560 |
1560 |
1561 @pyqtSlot() |
1561 @pyqtSlot() |