Fri, 12 Feb 2021 19:16:59 +0100
Updated source documentation.
--- a/eric6/APIs/Python3/eric6.api Fri Feb 12 19:16:12 2021 +0100 +++ b/eric6/APIs/Python3/eric6.api Fri Feb 12 19:16:59 2021 +0100 @@ -2342,17 +2342,11 @@ eric6.MicroPython.CircuitPythonDevices.CircuitPythonDevice.getDocumentationUrl?4() eric6.MicroPython.CircuitPythonDevices.CircuitPythonDevice.getDownloadMenuEntries?4() eric6.MicroPython.CircuitPythonDevices.CircuitPythonDevice.getWorkspace?4(silent=False) +eric6.MicroPython.CircuitPythonDevices.CircuitPythonDevice.hasFlashMenuEntry?4() eric6.MicroPython.CircuitPythonDevices.CircuitPythonDevice.runScript?4(script) eric6.MicroPython.CircuitPythonDevices.CircuitPythonDevice.setButtons?4() eric6.MicroPython.CircuitPythonDevices.CircuitPythonDevice.supportsLocalFileAccess?4() eric6.MicroPython.CircuitPythonDevices.CircuitPythonDevice?1(microPythonWidget, parent=None) -eric6.MicroPython.CircuitPythonFirmwareSelectionDialog.CircuitPythonFirmwareSelectionDialog.Boards?7 -eric6.MicroPython.CircuitPythonFirmwareSelectionDialog.CircuitPythonFirmwareSelectionDialog.getData?4() -eric6.MicroPython.CircuitPythonFirmwareSelectionDialog.CircuitPythonFirmwareSelectionDialog.on_boardComboBox_currentIndexChanged?4(index) -eric6.MicroPython.CircuitPythonFirmwareSelectionDialog.CircuitPythonFirmwareSelectionDialog.on_bootPicker_textChanged?4(devicePath) -eric6.MicroPython.CircuitPythonFirmwareSelectionDialog.CircuitPythonFirmwareSelectionDialog.on_firmwarePicker_textChanged?4(firmware) -eric6.MicroPython.CircuitPythonFirmwareSelectionDialog.CircuitPythonFirmwareSelectionDialog.on_retestButton_clicked?4() -eric6.MicroPython.CircuitPythonFirmwareSelectionDialog.CircuitPythonFirmwareSelectionDialog?1(parent=None) eric6.MicroPython.EspBackupRestoreFirmwareDialog.EspBackupRestoreFirmwareDialog.FlashModes?7 eric6.MicroPython.EspBackupRestoreFirmwareDialog.EspBackupRestoreFirmwareDialog.FlashSizes?7 eric6.MicroPython.EspBackupRestoreFirmwareDialog.EspBackupRestoreFirmwareDialog.getData?4() @@ -2368,6 +2362,7 @@ eric6.MicroPython.EspDevices.EspDevice.forceInterrupt?4() eric6.MicroPython.EspDevices.EspDevice.getDocumentationUrl?4() eric6.MicroPython.EspDevices.EspDevice.getFirmwareUrl?4() +eric6.MicroPython.EspDevices.EspDevice.hasFlashMenuEntry?4() eric6.MicroPython.EspDevices.EspDevice.runScript?4(script) eric6.MicroPython.EspDevices.EspDevice.setButtons?4() eric6.MicroPython.EspDevices.EspDevice?1(microPythonWidget, parent=None) @@ -2430,6 +2425,7 @@ eric6.MicroPython.MicroPythonDevices.MicroPythonDevice.handleDataFlood?4() eric6.MicroPython.MicroPythonDevices.MicroPythonDevice.hasDocumentationUrl?4() eric6.MicroPython.MicroPythonDevices.MicroPythonDevice.hasFirmwareUrl?4() +eric6.MicroPython.MicroPythonDevices.MicroPythonDevice.hasFlashMenuEntry?4() eric6.MicroPython.MicroPythonDevices.MicroPythonDevice.hasTimeCommands?4() eric6.MicroPython.MicroPythonDevices.MicroPythonDevice.runScript?4(script) eric6.MicroPython.MicroPythonDevices.MicroPythonDevice.selectDeviceDirectory?4(deviceDirectories) @@ -2546,6 +2542,7 @@ eric6.MicroPython.MicrobitDevices.MicrobitDevice.forceInterrupt?4() eric6.MicroPython.MicrobitDevices.MicrobitDevice.getDocumentationUrl?4() eric6.MicroPython.MicrobitDevices.MicrobitDevice.getDownloadMenuEntries?4() +eric6.MicroPython.MicrobitDevices.MicrobitDevice.hasFlashMenuEntry?4() eric6.MicroPython.MicrobitDevices.MicrobitDevice.hasTimeCommands?4() eric6.MicroPython.MicrobitDevices.MicrobitDevice.runScript?4(script) eric6.MicroPython.MicrobitDevices.MicrobitDevice.setButtons?4() @@ -2562,10 +2559,21 @@ eric6.MicroPython.PyBoardDevices.PyBoardDevice.getDocumentationUrl?4() eric6.MicroPython.PyBoardDevices.PyBoardDevice.getFirmwareUrl?4() eric6.MicroPython.PyBoardDevices.PyBoardDevice.getWorkspace?4(silent=False) +eric6.MicroPython.PyBoardDevices.PyBoardDevice.hasFlashMenuEntry?4() eric6.MicroPython.PyBoardDevices.PyBoardDevice.runScript?4(script) eric6.MicroPython.PyBoardDevices.PyBoardDevice.setButtons?4() eric6.MicroPython.PyBoardDevices.PyBoardDevice.supportsLocalFileAccess?4() eric6.MicroPython.PyBoardDevices.PyBoardDevice?1(microPythonWidget, parent=None) +eric6.MicroPython.UF2FlashDialog.SupportedUF2Boards?7 +eric6.MicroPython.UF2FlashDialog.UF2FlashDialog.DeviceTypeRole?7 +eric6.MicroPython.UF2FlashDialog.UF2FlashDialog.DeviceVidPidRole?7 +eric6.MicroPython.UF2FlashDialog.UF2FlashDialog.on_bootPicker_textChanged?4(text) +eric6.MicroPython.UF2FlashDialog.UF2FlashDialog.on_devicesComboBox_currentIndexChanged?4(index) +eric6.MicroPython.UF2FlashDialog.UF2FlashDialog.on_firmwarePicker_textChanged?4(text) +eric6.MicroPython.UF2FlashDialog.UF2FlashDialog.on_flashButton_clicked?4() +eric6.MicroPython.UF2FlashDialog.UF2FlashDialog.on_refreshButton_clicked?4() +eric6.MicroPython.UF2FlashDialog.UF2FlashDialog?1(boardType="", parent=None) +eric6.MicroPython.UF2FlashDialog.getFoundDevices?4(boardType="") eric6.MicroPython.UnknownDevicesDialog.UnknownDevicesDialog.DeviceDataRole?7 eric6.MicroPython.UnknownDevicesDialog.UnknownDevicesDialog.ModifiedRole?7 eric6.MicroPython.UnknownDevicesDialog.UnknownDevicesDialog.on_buttonBox_accepted?4()
--- a/eric6/APIs/Python3/eric6.bas Fri Feb 12 19:16:12 2021 +0100 +++ b/eric6/APIs/Python3/eric6.bas Fri Feb 12 19:16:59 2021 +0100 @@ -68,7 +68,6 @@ ChatWidget QWidget Ui_ChatWidget ChromeImporter BookmarksImporter CircuitPythonDevice MicroPythonDevice -CircuitPythonFirmwareSelectionDialog QDialog Ui_CircuitPythonFirmwareSelectionDialog Class ClbrBaseClasses.Class VisibilityMixin ClassItem UMLItem ClassModel UMLModel @@ -951,6 +950,7 @@ TranslatorWidget QWidget Ui_TranslatorWidget TrayStarter QSystemTrayIcon TrayStarterPage ConfigurationPageBase Ui_TrayStarterPage +UF2FlashDialog QDialog Ui_UF2FlashDialog UIPreviewer E5MainWindow UMLClassDiagramBuilder UMLDiagramBuilder UMLDiagramBuilder QObject
--- a/eric6/Documentation/Help/source.qhp Fri Feb 12 19:16:12 2021 +0100 +++ b/eric6/Documentation/Help/source.qhp Fri Feb 12 19:16:59 2021 +0100 @@ -237,7 +237,6 @@ <section title="eric6.MicroPython" ref="index-eric6.MicroPython.html"> <section title="eric6.MicroPython.AddEditDevicesDialog" ref="eric6.MicroPython.AddEditDevicesDialog.html" /> <section title="eric6.MicroPython.CircuitPythonDevices" ref="eric6.MicroPython.CircuitPythonDevices.html" /> - <section title="eric6.MicroPython.CircuitPythonFirmwareSelectionDialog" ref="eric6.MicroPython.CircuitPythonFirmwareSelectionDialog.html" /> <section title="eric6.MicroPython.EspBackupRestoreFirmwareDialog" ref="eric6.MicroPython.EspBackupRestoreFirmwareDialog.html" /> <section title="eric6.MicroPython.EspDevices" ref="eric6.MicroPython.EspDevices.html" /> <section title="eric6.MicroPython.EspFirmwareSelectionDialog" ref="eric6.MicroPython.EspFirmwareSelectionDialog.html" /> @@ -254,6 +253,7 @@ <section title="eric6.MicroPython.MicroPythonWidget" ref="eric6.MicroPython.MicroPythonWidget.html" /> <section title="eric6.MicroPython.MicrobitDevices" ref="eric6.MicroPython.MicrobitDevices.html" /> <section title="eric6.MicroPython.PyBoardDevices" ref="eric6.MicroPython.PyBoardDevices.html" /> + <section title="eric6.MicroPython.UF2FlashDialog" ref="eric6.MicroPython.UF2FlashDialog.html" /> <section title="eric6.MicroPython.UnknownDevicesDialog" ref="eric6.MicroPython.UnknownDevicesDialog.html" /> </section> <section title="eric6.MultiProject" ref="index-eric6.MultiProject.html"> @@ -2447,19 +2447,11 @@ <keyword name="CircuitPythonDevice.getDocumentationUrl" id="CircuitPythonDevice.getDocumentationUrl" ref="eric6.MicroPython.CircuitPythonDevices.html#CircuitPythonDevice.getDocumentationUrl" /> <keyword name="CircuitPythonDevice.getDownloadMenuEntries" id="CircuitPythonDevice.getDownloadMenuEntries" ref="eric6.MicroPython.CircuitPythonDevices.html#CircuitPythonDevice.getDownloadMenuEntries" /> <keyword name="CircuitPythonDevice.getWorkspace" id="CircuitPythonDevice.getWorkspace" ref="eric6.MicroPython.CircuitPythonDevices.html#CircuitPythonDevice.getWorkspace" /> + <keyword name="CircuitPythonDevice.hasFlashMenuEntry" id="CircuitPythonDevice.hasFlashMenuEntry" ref="eric6.MicroPython.CircuitPythonDevices.html#CircuitPythonDevice.hasFlashMenuEntry" /> <keyword name="CircuitPythonDevice.runScript" id="CircuitPythonDevice.runScript" ref="eric6.MicroPython.CircuitPythonDevices.html#CircuitPythonDevice.runScript" /> <keyword name="CircuitPythonDevice.setButtons" id="CircuitPythonDevice.setButtons" ref="eric6.MicroPython.CircuitPythonDevices.html#CircuitPythonDevice.setButtons" /> <keyword name="CircuitPythonDevice.supportsLocalFileAccess" id="CircuitPythonDevice.supportsLocalFileAccess" ref="eric6.MicroPython.CircuitPythonDevices.html#CircuitPythonDevice.supportsLocalFileAccess" /> <keyword name="CircuitPythonDevices (Module)" id="CircuitPythonDevices (Module)" ref="eric6.MicroPython.CircuitPythonDevices.html" /> - <keyword name="CircuitPythonFirmwareSelectionDialog" id="CircuitPythonFirmwareSelectionDialog" ref="eric6.MicroPython.CircuitPythonFirmwareSelectionDialog.html#CircuitPythonFirmwareSelectionDialog" /> - <keyword name="CircuitPythonFirmwareSelectionDialog (Constructor)" id="CircuitPythonFirmwareSelectionDialog (Constructor)" ref="eric6.MicroPython.CircuitPythonFirmwareSelectionDialog.html#CircuitPythonFirmwareSelectionDialog.__init__" /> - <keyword name="CircuitPythonFirmwareSelectionDialog (Module)" id="CircuitPythonFirmwareSelectionDialog (Module)" ref="eric6.MicroPython.CircuitPythonFirmwareSelectionDialog.html" /> - <keyword name="CircuitPythonFirmwareSelectionDialog.__updateOkButton" id="CircuitPythonFirmwareSelectionDialog.__updateOkButton" ref="eric6.MicroPython.CircuitPythonFirmwareSelectionDialog.html#CircuitPythonFirmwareSelectionDialog.__updateOkButton" /> - <keyword name="CircuitPythonFirmwareSelectionDialog.getData" id="CircuitPythonFirmwareSelectionDialog.getData" ref="eric6.MicroPython.CircuitPythonFirmwareSelectionDialog.html#CircuitPythonFirmwareSelectionDialog.getData" /> - <keyword name="CircuitPythonFirmwareSelectionDialog.on_boardComboBox_currentIndexChanged" id="CircuitPythonFirmwareSelectionDialog.on_boardComboBox_currentIndexChanged" ref="eric6.MicroPython.CircuitPythonFirmwareSelectionDialog.html#CircuitPythonFirmwareSelectionDialog.on_boardComboBox_currentIndexChanged" /> - <keyword name="CircuitPythonFirmwareSelectionDialog.on_bootPicker_textChanged" id="CircuitPythonFirmwareSelectionDialog.on_bootPicker_textChanged" ref="eric6.MicroPython.CircuitPythonFirmwareSelectionDialog.html#CircuitPythonFirmwareSelectionDialog.on_bootPicker_textChanged" /> - <keyword name="CircuitPythonFirmwareSelectionDialog.on_firmwarePicker_textChanged" id="CircuitPythonFirmwareSelectionDialog.on_firmwarePicker_textChanged" ref="eric6.MicroPython.CircuitPythonFirmwareSelectionDialog.html#CircuitPythonFirmwareSelectionDialog.on_firmwarePicker_textChanged" /> - <keyword name="CircuitPythonFirmwareSelectionDialog.on_retestButton_clicked" id="CircuitPythonFirmwareSelectionDialog.on_retestButton_clicked" ref="eric6.MicroPython.CircuitPythonFirmwareSelectionDialog.html#CircuitPythonFirmwareSelectionDialog.on_retestButton_clicked" /> <keyword name="Class" id="Class" ref="eric6.Utilities.ClassBrowsers.ClbrBaseClasses.html#Class" /> <keyword name="Class" id="Class" ref="eric6.Utilities.ClassBrowsers.pyclbr.html#Class" /> <keyword name="Class" id="Class" ref="eric6.Utilities.ClassBrowsers.rbclbr.html#Class" /> @@ -5643,6 +5635,7 @@ <keyword name="EspDevice.forceInterrupt" id="EspDevice.forceInterrupt" ref="eric6.MicroPython.EspDevices.html#EspDevice.forceInterrupt" /> <keyword name="EspDevice.getDocumentationUrl" id="EspDevice.getDocumentationUrl" ref="eric6.MicroPython.EspDevices.html#EspDevice.getDocumentationUrl" /> <keyword name="EspDevice.getFirmwareUrl" id="EspDevice.getFirmwareUrl" ref="eric6.MicroPython.EspDevices.html#EspDevice.getFirmwareUrl" /> + <keyword name="EspDevice.hasFlashMenuEntry" id="EspDevice.hasFlashMenuEntry" ref="eric6.MicroPython.EspDevices.html#EspDevice.hasFlashMenuEntry" /> <keyword name="EspDevice.runScript" id="EspDevice.runScript" ref="eric6.MicroPython.EspDevices.html#EspDevice.runScript" /> <keyword name="EspDevice.setButtons" id="EspDevice.setButtons" ref="eric6.MicroPython.EspDevices.html#EspDevice.setButtons" /> <keyword name="EspDevices (Module)" id="EspDevices (Module)" ref="eric6.MicroPython.EspDevices.html" /> @@ -9796,6 +9789,7 @@ <keyword name="MicroPythonDevice.handleDataFlood" id="MicroPythonDevice.handleDataFlood" ref="eric6.MicroPython.MicroPythonDevices.html#MicroPythonDevice.handleDataFlood" /> <keyword name="MicroPythonDevice.hasDocumentationUrl" id="MicroPythonDevice.hasDocumentationUrl" ref="eric6.MicroPython.MicroPythonDevices.html#MicroPythonDevice.hasDocumentationUrl" /> <keyword name="MicroPythonDevice.hasFirmwareUrl" id="MicroPythonDevice.hasFirmwareUrl" ref="eric6.MicroPython.MicroPythonDevices.html#MicroPythonDevice.hasFirmwareUrl" /> + <keyword name="MicroPythonDevice.hasFlashMenuEntry" id="MicroPythonDevice.hasFlashMenuEntry" ref="eric6.MicroPython.MicroPythonDevices.html#MicroPythonDevice.hasFlashMenuEntry" /> <keyword name="MicroPythonDevice.hasTimeCommands" id="MicroPythonDevice.hasTimeCommands" ref="eric6.MicroPython.MicroPythonDevices.html#MicroPythonDevice.hasTimeCommands" /> <keyword name="MicroPythonDevice.runScript" id="MicroPythonDevice.runScript" ref="eric6.MicroPython.MicroPythonDevices.html#MicroPythonDevice.runScript" /> <keyword name="MicroPythonDevice.selectDeviceDirectory" id="MicroPythonDevice.selectDeviceDirectory" ref="eric6.MicroPython.MicroPythonDevices.html#MicroPythonDevice.selectDeviceDirectory" /> @@ -9909,6 +9903,7 @@ <keyword name="MicroPythonWidget.__doZoom" id="MicroPythonWidget.__doZoom" ref="eric6.MicroPython.MicroPythonWidget.html#MicroPythonWidget.__doZoom" /> <keyword name="MicroPythonWidget.__downloadFirmware" id="MicroPythonWidget.__downloadFirmware" ref="eric6.MicroPython.MicroPythonWidget.html#MicroPythonWidget.__downloadFirmware" /> <keyword name="MicroPythonWidget.__downloadFromUrl" id="MicroPythonWidget.__downloadFromUrl" ref="eric6.MicroPython.MicroPythonWidget.html#MicroPythonWidget.__downloadFromUrl" /> + <keyword name="MicroPythonWidget.__flashUF2" id="MicroPythonWidget.__flashUF2" ref="eric6.MicroPython.MicroPythonWidget.html#MicroPythonWidget.__flashUF2" /> <keyword name="MicroPythonWidget.__getDeviceTime" id="MicroPythonWidget.__getDeviceTime" ref="eric6.MicroPython.MicroPythonWidget.html#MicroPythonWidget.__getDeviceTime" /> <keyword name="MicroPythonWidget.__handlePreferencesChanged" id="MicroPythonWidget.__handlePreferencesChanged" ref="eric6.MicroPython.MicroPythonWidget.html#MicroPythonWidget.__handlePreferencesChanged" /> <keyword name="MicroPythonWidget.__manageIgnored" id="MicroPythonWidget.__manageIgnored" ref="eric6.MicroPython.MicroPythonWidget.html#MicroPythonWidget.__manageIgnored" /> @@ -9962,6 +9957,7 @@ <keyword name="MicrobitDevice.forceInterrupt" id="MicrobitDevice.forceInterrupt" ref="eric6.MicroPython.MicrobitDevices.html#MicrobitDevice.forceInterrupt" /> <keyword name="MicrobitDevice.getDocumentationUrl" id="MicrobitDevice.getDocumentationUrl" ref="eric6.MicroPython.MicrobitDevices.html#MicrobitDevice.getDocumentationUrl" /> <keyword name="MicrobitDevice.getDownloadMenuEntries" id="MicrobitDevice.getDownloadMenuEntries" ref="eric6.MicroPython.MicrobitDevices.html#MicrobitDevice.getDownloadMenuEntries" /> + <keyword name="MicrobitDevice.hasFlashMenuEntry" id="MicrobitDevice.hasFlashMenuEntry" ref="eric6.MicroPython.MicrobitDevices.html#MicrobitDevice.hasFlashMenuEntry" /> <keyword name="MicrobitDevice.hasTimeCommands" id="MicrobitDevice.hasTimeCommands" ref="eric6.MicroPython.MicrobitDevices.html#MicrobitDevice.hasTimeCommands" /> <keyword name="MicrobitDevice.runScript" id="MicrobitDevice.runScript" ref="eric6.MicroPython.MicrobitDevices.html#MicrobitDevice.runScript" /> <keyword name="MicrobitDevice.setButtons" id="MicrobitDevice.setButtons" ref="eric6.MicroPython.MicrobitDevices.html#MicrobitDevice.setButtons" /> @@ -11917,6 +11913,7 @@ <keyword name="PyBoardDevice.getDocumentationUrl" id="PyBoardDevice.getDocumentationUrl" ref="eric6.MicroPython.PyBoardDevices.html#PyBoardDevice.getDocumentationUrl" /> <keyword name="PyBoardDevice.getFirmwareUrl" id="PyBoardDevice.getFirmwareUrl" ref="eric6.MicroPython.PyBoardDevices.html#PyBoardDevice.getFirmwareUrl" /> <keyword name="PyBoardDevice.getWorkspace" id="PyBoardDevice.getWorkspace" ref="eric6.MicroPython.PyBoardDevices.html#PyBoardDevice.getWorkspace" /> + <keyword name="PyBoardDevice.hasFlashMenuEntry" id="PyBoardDevice.hasFlashMenuEntry" ref="eric6.MicroPython.PyBoardDevices.html#PyBoardDevice.hasFlashMenuEntry" /> <keyword name="PyBoardDevice.runScript" id="PyBoardDevice.runScript" ref="eric6.MicroPython.PyBoardDevices.html#PyBoardDevice.runScript" /> <keyword name="PyBoardDevice.setButtons" id="PyBoardDevice.setButtons" ref="eric6.MicroPython.PyBoardDevices.html#PyBoardDevice.setButtons" /> <keyword name="PyBoardDevice.supportsLocalFileAccess" id="PyBoardDevice.supportsLocalFileAccess" ref="eric6.MicroPython.PyBoardDevices.html#PyBoardDevice.supportsLocalFileAccess" /> @@ -15236,6 +15233,22 @@ <keyword name="TrayStarterPage (Module)" id="TrayStarterPage (Module)" ref="eric6.Preferences.ConfigurationPages.TrayStarterPage.html" /> <keyword name="TrayStarterPage.save" id="TrayStarterPage.save" ref="eric6.Preferences.ConfigurationPages.TrayStarterPage.html#TrayStarterPage.save" /> <keyword name="TypingCompleters (Package)" id="TypingCompleters (Package)" ref="index-eric6.QScintilla.TypingCompleters.html" /> + <keyword name="UF2FlashDialog" id="UF2FlashDialog" ref="eric6.MicroPython.UF2FlashDialog.html#UF2FlashDialog" /> + <keyword name="UF2FlashDialog (Constructor)" id="UF2FlashDialog (Constructor)" ref="eric6.MicroPython.UF2FlashDialog.html#UF2FlashDialog.__init__" /> + <keyword name="UF2FlashDialog (Module)" id="UF2FlashDialog (Module)" ref="eric6.MicroPython.UF2FlashDialog.html" /> + <keyword name="UF2FlashDialog.__populate" id="UF2FlashDialog.__populate" ref="eric6.MicroPython.UF2FlashDialog.html#UF2FlashDialog.__populate" /> + <keyword name="UF2FlashDialog.__showAllInstructions" id="UF2FlashDialog.__showAllInstructions" ref="eric6.MicroPython.UF2FlashDialog.html#UF2FlashDialog.__showAllInstructions" /> + <keyword name="UF2FlashDialog.__showManualInstructions" id="UF2FlashDialog.__showManualInstructions" ref="eric6.MicroPython.UF2FlashDialog.html#UF2FlashDialog.__showManualInstructions" /> + <keyword name="UF2FlashDialog.__showMultipleVolumesInformation" id="UF2FlashDialog.__showMultipleVolumesInformation" ref="eric6.MicroPython.UF2FlashDialog.html#UF2FlashDialog.__showMultipleVolumesInformation" /> + <keyword name="UF2FlashDialog.__showNoVolumeInformation" id="UF2FlashDialog.__showNoVolumeInformation" ref="eric6.MicroPython.UF2FlashDialog.html#UF2FlashDialog.__showNoVolumeInformation" /> + <keyword name="UF2FlashDialog.__showSpecificInstructions" id="UF2FlashDialog.__showSpecificInstructions" ref="eric6.MicroPython.UF2FlashDialog.html#UF2FlashDialog.__showSpecificInstructions" /> + <keyword name="UF2FlashDialog.__showTypedInstructions" id="UF2FlashDialog.__showTypedInstructions" ref="eric6.MicroPython.UF2FlashDialog.html#UF2FlashDialog.__showTypedInstructions" /> + <keyword name="UF2FlashDialog.__updateFlashButton" id="UF2FlashDialog.__updateFlashButton" ref="eric6.MicroPython.UF2FlashDialog.html#UF2FlashDialog.__updateFlashButton" /> + <keyword name="UF2FlashDialog.on_bootPicker_textChanged" id="UF2FlashDialog.on_bootPicker_textChanged" ref="eric6.MicroPython.UF2FlashDialog.html#UF2FlashDialog.on_bootPicker_textChanged" /> + <keyword name="UF2FlashDialog.on_devicesComboBox_currentIndexChanged" id="UF2FlashDialog.on_devicesComboBox_currentIndexChanged" ref="eric6.MicroPython.UF2FlashDialog.html#UF2FlashDialog.on_devicesComboBox_currentIndexChanged" /> + <keyword name="UF2FlashDialog.on_firmwarePicker_textChanged" id="UF2FlashDialog.on_firmwarePicker_textChanged" ref="eric6.MicroPython.UF2FlashDialog.html#UF2FlashDialog.on_firmwarePicker_textChanged" /> + <keyword name="UF2FlashDialog.on_flashButton_clicked" id="UF2FlashDialog.on_flashButton_clicked" ref="eric6.MicroPython.UF2FlashDialog.html#UF2FlashDialog.on_flashButton_clicked" /> + <keyword name="UF2FlashDialog.on_refreshButton_clicked" id="UF2FlashDialog.on_refreshButton_clicked" ref="eric6.MicroPython.UF2FlashDialog.html#UF2FlashDialog.on_refreshButton_clicked" /> <keyword name="UI (Package)" id="UI (Package)" ref="index-eric6.UI.html" /> <keyword name="UIPreviewer" id="UIPreviewer" ref="eric6.Tools.UIPreviewer.html#UIPreviewer" /> <keyword name="UIPreviewer (Constructor)" id="UIPreviewer (Constructor)" ref="eric6.Tools.UIPreviewer.html#UIPreviewer.__init__" /> @@ -17657,6 +17670,7 @@ <keyword name="getFlakes" id="getFlakes" ref="eric6.Preferences.__init__.html#getFlakes" /> <keyword name="getFormData" id="getFormData" ref="eric6.WebBrowser.Tools.Scripts.html#getFormData" /> <keyword name="getFoundDevices" id="getFoundDevices" ref="eric6.MicroPython.MicroPythonDevices.html#getFoundDevices" /> + <keyword name="getFoundDevices" id="getFoundDevices" ref="eric6.MicroPython.UF2FlashDialog.html#getFoundDevices" /> <keyword name="getGeometry" id="getGeometry" ref="eric6.Preferences.__init__.html#getGeometry" /> <keyword name="getGraphics" id="getGraphics" ref="eric6.Preferences.__init__.html#getGraphics" /> <keyword name="getHelp" id="getHelp" ref="eric6.Preferences.__init__.html#getHelp" /> @@ -18482,6 +18496,7 @@ <file>eric6.MicroPython.MicroPythonWidget.html</file> <file>eric6.MicroPython.MicrobitDevices.html</file> <file>eric6.MicroPython.PyBoardDevices.html</file> + <file>eric6.MicroPython.UF2FlashDialog.html</file> <file>eric6.MicroPython.UnknownDevicesDialog.html</file> <file>eric6.MultiProject.AddProjectDialog.html</file> <file>eric6.MultiProject.MultiProject.html</file>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/eric6/Documentation/Source/eric6.MicroPython.CircuitPythonDevices.html Fri Feb 12 19:16:59 2021 +0100 @@ -0,0 +1,502 @@ +<!DOCTYPE html> +<html><head> +<title>eric6.MicroPython.CircuitPythonDevices</title> +<meta charset="UTF-8"> +<style> +body { + background: #EDECE6; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #85774A; } +h2 { color: white; background: #85774A; } +h3 { color: white; background: #9D936E; } +h4 { color: white; background: #9D936E; } + +a { color: #BA6D36; } + +</style> +</head> +<body> +<a NAME="top" ID="top"></a> +<h1>eric6.MicroPython.CircuitPythonDevices</h1> + +<p> +Module implementing the device interface class for CircuitPython boards. +</p> +<h3>Global Attributes</h3> + +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> + +<table> + +<tr> +<td><a href="#CircuitPythonDevice">CircuitPythonDevice</a></td> +<td>Class implementing the device for CircuitPython boards.</td> +</tr> +</table> +<h3>Functions</h3> + +<table> +<tr><td>None</td></tr> +</table> +<hr /> +<hr /> +<a NAME="CircuitPythonDevice" ID="CircuitPythonDevice"></a> +<h2>CircuitPythonDevice</h2> + +<p> + Class implementing the device for CircuitPython boards. +</p> +<h3>Derived from</h3> +MicroPythonDevice +<h3>Class Attributes</h3> + +<table> +<tr><td>DeviceVolumeName</td></tr> +</table> +<h3>Class Methods</h3> + +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> + +<table> + +<tr> +<td><a href="#CircuitPythonDevice.__init__">CircuitPythonDevice</a></td> +<td>Constructor</td> +</tr> +<tr> +<td><a href="#CircuitPythonDevice.__deviceVolumeMounted">__deviceVolumeMounted</a></td> +<td>Private method to check, if the device volume is mounted.</td> +</tr> +<tr> +<td><a href="#CircuitPythonDevice.__findWorkspace">__findWorkspace</a></td> +<td>Private method to find the workspace directory.</td> +</tr> +<tr> +<td><a href="#CircuitPythonDevice.__flashCircuitPython">__flashCircuitPython</a></td> +<td>Private slot to flash a CircuitPython firmware to the device.</td> +</tr> +<tr> +<td><a href="#CircuitPythonDevice.__flashTeensy">__flashTeensy</a></td> +<td>Private method to show a message box because Teens does not support the UF2 bootloader yet.</td> +</tr> +<tr> +<td><a href="#CircuitPythonDevice.__installLibraryFiles">__installLibraryFiles</a></td> +<td>Private slot to install Python files into the onboard library.</td> +</tr> +<tr> +<td><a href="#CircuitPythonDevice.addDeviceMenuEntries">addDeviceMenuEntries</a></td> +<td>Public method to add device specific entries to the given menu.</td> +</tr> +<tr> +<td><a href="#CircuitPythonDevice.canRunScript">canRunScript</a></td> +<td>Public method to determine, if a script can be executed.</td> +</tr> +<tr> +<td><a href="#CircuitPythonDevice.canStartFileManager">canStartFileManager</a></td> +<td>Public method to determine, if a File Manager can be started.</td> +</tr> +<tr> +<td><a href="#CircuitPythonDevice.canStartPlotter">canStartPlotter</a></td> +<td>Public method to determine, if a Plotter can be started.</td> +</tr> +<tr> +<td><a href="#CircuitPythonDevice.canStartRepl">canStartRepl</a></td> +<td>Public method to determine, if a REPL can be started.</td> +</tr> +<tr> +<td><a href="#CircuitPythonDevice.deviceName">deviceName</a></td> +<td>Public method to get the name of the device.</td> +</tr> +<tr> +<td><a href="#CircuitPythonDevice.forceInterrupt">forceInterrupt</a></td> +<td>Public method to determine the need for an interrupt when opening the serial connection.</td> +</tr> +<tr> +<td><a href="#CircuitPythonDevice.getDocumentationUrl">getDocumentationUrl</a></td> +<td>Public method to get the device documentation URL.</td> +</tr> +<tr> +<td><a href="#CircuitPythonDevice.getDownloadMenuEntries">getDownloadMenuEntries</a></td> +<td>Public method to retrieve the entries for the downloads menu.</td> +</tr> +<tr> +<td><a href="#CircuitPythonDevice.getWorkspace">getWorkspace</a></td> +<td>Public method to get the workspace directory.</td> +</tr> +<tr> +<td><a href="#CircuitPythonDevice.hasFlashMenuEntry">hasFlashMenuEntry</a></td> +<td>Public method to check, if the device has its own flash menu entry.</td> +</tr> +<tr> +<td><a href="#CircuitPythonDevice.runScript">runScript</a></td> +<td>Public method to run the given Python script.</td> +</tr> +<tr> +<td><a href="#CircuitPythonDevice.setButtons">setButtons</a></td> +<td>Public method to enable the supported action buttons.</td> +</tr> +<tr> +<td><a href="#CircuitPythonDevice.supportsLocalFileAccess">supportsLocalFileAccess</a></td> +<td>Public method to indicate file access via a local directory.</td> +</tr> +</table> +<h3>Static Methods</h3> + +<table> +<tr><td>None</td></tr> +</table> + +<a NAME="CircuitPythonDevice.__init__" ID="CircuitPythonDevice.__init__"></a> +<h4>CircuitPythonDevice (Constructor)</h4> +<b>CircuitPythonDevice</b>(<i>microPythonWidget, parent=None</i>) + +<p> + Constructor +</p> +<dl> + +<dt><i>microPythonWidget</i> (MicroPythonWidget)</dt> +<dd> +reference to the main MicroPython widget +</dd> +<dt><i>parent</i> (QObject)</dt> +<dd> +reference to the parent object +</dd> +</dl> +<a NAME="CircuitPythonDevice.__deviceVolumeMounted" ID="CircuitPythonDevice.__deviceVolumeMounted"></a> +<h4>CircuitPythonDevice.__deviceVolumeMounted</h4> +<b>__deviceVolumeMounted</b>(<i></i>) + +<p> + Private method to check, if the device volume is mounted. +</p> +<dl> +<dt>Return:</dt> +<dd> +flag indicated a mounted device +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +bool +</dd> +</dl> +<a NAME="CircuitPythonDevice.__findWorkspace" ID="CircuitPythonDevice.__findWorkspace"></a> +<h4>CircuitPythonDevice.__findWorkspace</h4> +<b>__findWorkspace</b>(<i>silent=False</i>) + +<p> + Private method to find the workspace directory. +</p> +<dl> + +<dt><i>silent</i> (bool)</dt> +<dd> +flag indicating silent operations +</dd> +</dl> +<dl> +<dt>Return:</dt> +<dd> +workspace directory used for saving files +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +str +</dd> +</dl> +<a NAME="CircuitPythonDevice.__flashCircuitPython" ID="CircuitPythonDevice.__flashCircuitPython"></a> +<h4>CircuitPythonDevice.__flashCircuitPython</h4> +<b>__flashCircuitPython</b>(<i></i>) + +<p> + Private slot to flash a CircuitPython firmware to the device. +</p> +<a NAME="CircuitPythonDevice.__flashTeensy" ID="CircuitPythonDevice.__flashTeensy"></a> +<h4>CircuitPythonDevice.__flashTeensy</h4> +<b>__flashTeensy</b>(<i></i>) + +<p> + Private method to show a message box because Teens does not support + the UF2 bootloader yet. +</p> +<a NAME="CircuitPythonDevice.__installLibraryFiles" ID="CircuitPythonDevice.__installLibraryFiles"></a> +<h4>CircuitPythonDevice.__installLibraryFiles</h4> +<b>__installLibraryFiles</b>(<i></i>) + +<p> + Private slot to install Python files into the onboard library. +</p> +<a NAME="CircuitPythonDevice.addDeviceMenuEntries" ID="CircuitPythonDevice.addDeviceMenuEntries"></a> +<h4>CircuitPythonDevice.addDeviceMenuEntries</h4> +<b>addDeviceMenuEntries</b>(<i>menu</i>) + +<p> + Public method to add device specific entries to the given menu. +</p> +<dl> + +<dt><i>menu</i> (QMenu)</dt> +<dd> +reference to the context menu +</dd> +</dl> +<a NAME="CircuitPythonDevice.canRunScript" ID="CircuitPythonDevice.canRunScript"></a> +<h4>CircuitPythonDevice.canRunScript</h4> +<b>canRunScript</b>(<i></i>) + +<p> + Public method to determine, if a script can be executed. +</p> +<dl> +<dt>Return:</dt> +<dd> +tuple containing a flag indicating it is safe to start a + Plotter and a reason why it cannot. +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +tuple of (bool, str) +</dd> +</dl> +<a NAME="CircuitPythonDevice.canStartFileManager" ID="CircuitPythonDevice.canStartFileManager"></a> +<h4>CircuitPythonDevice.canStartFileManager</h4> +<b>canStartFileManager</b>(<i></i>) + +<p> + Public method to determine, if a File Manager can be started. +</p> +<dl> +<dt>Return:</dt> +<dd> +tuple containing a flag indicating it is safe to start a + File Manager and a reason why it cannot. +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +tuple of (bool, str) +</dd> +</dl> +<a NAME="CircuitPythonDevice.canStartPlotter" ID="CircuitPythonDevice.canStartPlotter"></a> +<h4>CircuitPythonDevice.canStartPlotter</h4> +<b>canStartPlotter</b>(<i></i>) + +<p> + Public method to determine, if a Plotter can be started. +</p> +<dl> +<dt>Return:</dt> +<dd> +tuple containing a flag indicating it is safe to start a + Plotter and a reason why it cannot. +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +tuple of (bool, str) +</dd> +</dl> +<a NAME="CircuitPythonDevice.canStartRepl" ID="CircuitPythonDevice.canStartRepl"></a> +<h4>CircuitPythonDevice.canStartRepl</h4> +<b>canStartRepl</b>(<i></i>) + +<p> + Public method to determine, if a REPL can be started. +</p> +<dl> +<dt>Return:</dt> +<dd> +tuple containing a flag indicating it is safe to start a REPL + and a reason why it cannot. +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +tuple of (bool, str) +</dd> +</dl> +<a NAME="CircuitPythonDevice.deviceName" ID="CircuitPythonDevice.deviceName"></a> +<h4>CircuitPythonDevice.deviceName</h4> +<b>deviceName</b>(<i></i>) + +<p> + Public method to get the name of the device. +</p> +<dl> +<dt>Return:</dt> +<dd> +name of the device +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +str +</dd> +</dl> +<a NAME="CircuitPythonDevice.forceInterrupt" ID="CircuitPythonDevice.forceInterrupt"></a> +<h4>CircuitPythonDevice.forceInterrupt</h4> +<b>forceInterrupt</b>(<i></i>) + +<p> + Public method to determine the need for an interrupt when opening the + serial connection. +</p> +<dl> +<dt>Return:</dt> +<dd> +flag indicating an interrupt is needed +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +bool +</dd> +</dl> +<a NAME="CircuitPythonDevice.getDocumentationUrl" ID="CircuitPythonDevice.getDocumentationUrl"></a> +<h4>CircuitPythonDevice.getDocumentationUrl</h4> +<b>getDocumentationUrl</b>(<i></i>) + +<p> + Public method to get the device documentation URL. +</p> +<dl> +<dt>Return:</dt> +<dd> +documentation URL of the device +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +str +</dd> +</dl> +<a NAME="CircuitPythonDevice.getDownloadMenuEntries" ID="CircuitPythonDevice.getDownloadMenuEntries"></a> +<h4>CircuitPythonDevice.getDownloadMenuEntries</h4> +<b>getDownloadMenuEntries</b>(<i></i>) + +<p> + Public method to retrieve the entries for the downloads menu. +</p> +<dl> +<dt>Return:</dt> +<dd> +list of tuples with menu text and URL to be opened for each + entry +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +list of tuple of (str, str) +</dd> +</dl> +<a NAME="CircuitPythonDevice.getWorkspace" ID="CircuitPythonDevice.getWorkspace"></a> +<h4>CircuitPythonDevice.getWorkspace</h4> +<b>getWorkspace</b>(<i>silent=False</i>) + +<p> + Public method to get the workspace directory. +</p> +<dl> + +<dt><i>silent</i> (bool)</dt> +<dd> +flag indicating silent operations +</dd> +</dl> +<dl> +<dt>Return:</dt> +<dd> +workspace directory used for saving files +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +str +</dd> +</dl> +<a NAME="CircuitPythonDevice.hasFlashMenuEntry" ID="CircuitPythonDevice.hasFlashMenuEntry"></a> +<h4>CircuitPythonDevice.hasFlashMenuEntry</h4> +<b>hasFlashMenuEntry</b>(<i></i>) + +<p> + Public method to check, if the device has its own flash menu entry. +</p> +<dl> +<dt>Return:</dt> +<dd> +flag indicating a specific flash menu entry +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +bool +</dd> +</dl> +<a NAME="CircuitPythonDevice.runScript" ID="CircuitPythonDevice.runScript"></a> +<h4>CircuitPythonDevice.runScript</h4> +<b>runScript</b>(<i>script</i>) + +<p> + Public method to run the given Python script. +</p> +<dl> + +<dt><i>script</i> (str)</dt> +<dd> +script to be executed +</dd> +</dl> +<a NAME="CircuitPythonDevice.setButtons" ID="CircuitPythonDevice.setButtons"></a> +<h4>CircuitPythonDevice.setButtons</h4> +<b>setButtons</b>(<i></i>) + +<p> + Public method to enable the supported action buttons. +</p> +<a NAME="CircuitPythonDevice.supportsLocalFileAccess" ID="CircuitPythonDevice.supportsLocalFileAccess"></a> +<h4>CircuitPythonDevice.supportsLocalFileAccess</h4> +<b>supportsLocalFileAccess</b>(<i></i>) + +<p> + Public method to indicate file access via a local directory. +</p> +<dl> +<dt>Return:</dt> +<dd> +flag indicating file access via local directory +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +bool +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- a/eric6/Documentation/Source/eric6.MicroPython.CircuitPythonFirmwareSelectionDialog.html Fri Feb 12 19:16:12 2021 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,199 +0,0 @@ -<!DOCTYPE html> -<html><head> -<title>eric6.MicroPython.CircuitPythonFirmwareSelectionDialog</title> -<meta charset="UTF-8"> -<style> -body { - background: #EDECE6; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #85774A; } -h2 { color: white; background: #85774A; } -h3 { color: white; background: #9D936E; } -h4 { color: white; background: #9D936E; } - -a { color: #BA6D36; } - -</style> -</head> -<body> -<a NAME="top" ID="top"></a> -<h1>eric6.MicroPython.CircuitPythonFirmwareSelectionDialog</h1> - -<p> -Module implementing a dialog to enter the firmware flashing data. -</p> -<h3>Global Attributes</h3> - -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> - -<table> - -<tr> -<td><a href="#CircuitPythonFirmwareSelectionDialog">CircuitPythonFirmwareSelectionDialog</a></td> -<td>Class implementing a dialog to enter the firmware flashing data.</td> -</tr> -</table> -<h3>Functions</h3> - -<table> -<tr><td>None</td></tr> -</table> -<hr /> -<hr /> -<a NAME="CircuitPythonFirmwareSelectionDialog" ID="CircuitPythonFirmwareSelectionDialog"></a> -<h2>CircuitPythonFirmwareSelectionDialog</h2> - -<p> - Class implementing a dialog to enter the firmware flashing data. -</p> -<h3>Derived from</h3> -QDialog, Ui_CircuitPythonFirmwareSelectionDialog -<h3>Class Attributes</h3> - -<table> -<tr><td>Boards</td></tr> -</table> -<h3>Class Methods</h3> - -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> - -<table> - -<tr> -<td><a href="#CircuitPythonFirmwareSelectionDialog.__init__">CircuitPythonFirmwareSelectionDialog</a></td> -<td>Constructor</td> -</tr> -<tr> -<td><a href="#CircuitPythonFirmwareSelectionDialog.__updateOkButton">__updateOkButton</a></td> -<td>Private method to update the state of the OK button and the retest button.</td> -</tr> -<tr> -<td><a href="#CircuitPythonFirmwareSelectionDialog.getData">getData</a></td> -<td>Public method to obtain the entered data.</td> -</tr> -<tr> -<td><a href="#CircuitPythonFirmwareSelectionDialog.on_boardComboBox_currentIndexChanged">on_boardComboBox_currentIndexChanged</a></td> -<td>Private slot to handle the selection of a board type.</td> -</tr> -<tr> -<td><a href="#CircuitPythonFirmwareSelectionDialog.on_bootPicker_textChanged">on_bootPicker_textChanged</a></td> -<td>Private slot handling a change of the device path.</td> -</tr> -<tr> -<td><a href="#CircuitPythonFirmwareSelectionDialog.on_firmwarePicker_textChanged">on_firmwarePicker_textChanged</a></td> -<td>Private slot handling a change of the firmware path.</td> -</tr> -<tr> -<td><a href="#CircuitPythonFirmwareSelectionDialog.on_retestButton_clicked">on_retestButton_clicked</a></td> -<td>Private slot to research for the selected volume.</td> -</tr> -</table> -<h3>Static Methods</h3> - -<table> -<tr><td>None</td></tr> -</table> - -<a NAME="CircuitPythonFirmwareSelectionDialog.__init__" ID="CircuitPythonFirmwareSelectionDialog.__init__"></a> -<h4>CircuitPythonFirmwareSelectionDialog (Constructor)</h4> -<b>CircuitPythonFirmwareSelectionDialog</b>(<i>parent=None</i>) - -<p> - Constructor -</p> -<dl> - -<dt><i>parent</i> (QWidget)</dt> -<dd> -reference to the parent widget -</dd> -</dl> -<a NAME="CircuitPythonFirmwareSelectionDialog.__updateOkButton" ID="CircuitPythonFirmwareSelectionDialog.__updateOkButton"></a> -<h4>CircuitPythonFirmwareSelectionDialog.__updateOkButton</h4> -<b>__updateOkButton</b>(<i></i>) - -<p> - Private method to update the state of the OK button and the retest - button. -</p> -<a NAME="CircuitPythonFirmwareSelectionDialog.getData" ID="CircuitPythonFirmwareSelectionDialog.getData"></a> -<h4>CircuitPythonFirmwareSelectionDialog.getData</h4> -<b>getData</b>(<i></i>) - -<p> - Public method to obtain the entered data. -</p> -<dl> -<dt>Return:</dt> -<dd> -tuple containing the path to the CircuitPython firmware file - and the path to the device -</dd> -</dl> -<dl> -<dt>Return Type:</dt> -<dd> -tuple of (str, str) -</dd> -</dl> -<a NAME="CircuitPythonFirmwareSelectionDialog.on_boardComboBox_currentIndexChanged" ID="CircuitPythonFirmwareSelectionDialog.on_boardComboBox_currentIndexChanged"></a> -<h4>CircuitPythonFirmwareSelectionDialog.on_boardComboBox_currentIndexChanged</h4> -<b>on_boardComboBox_currentIndexChanged</b>(<i>index</i>) - -<p> - Private slot to handle the selection of a board type. -</p> -<dl> - -<dt><i>index</i> (int)</dt> -<dd> -index of the selected board type -</dd> -</dl> -<a NAME="CircuitPythonFirmwareSelectionDialog.on_bootPicker_textChanged" ID="CircuitPythonFirmwareSelectionDialog.on_bootPicker_textChanged"></a> -<h4>CircuitPythonFirmwareSelectionDialog.on_bootPicker_textChanged</h4> -<b>on_bootPicker_textChanged</b>(<i>devicePath</i>) - -<p> - Private slot handling a change of the device path. -</p> -<dl> - -<dt><i>devicePath</i> (str)</dt> -<dd> -path to the device -</dd> -</dl> -<a NAME="CircuitPythonFirmwareSelectionDialog.on_firmwarePicker_textChanged" ID="CircuitPythonFirmwareSelectionDialog.on_firmwarePicker_textChanged"></a> -<h4>CircuitPythonFirmwareSelectionDialog.on_firmwarePicker_textChanged</h4> -<b>on_firmwarePicker_textChanged</b>(<i>firmware</i>) - -<p> - Private slot handling a change of the firmware path. -</p> -<dl> - -<dt><i>firmware</i> (str)</dt> -<dd> -path to the firmware -</dd> -</dl> -<a NAME="CircuitPythonFirmwareSelectionDialog.on_retestButton_clicked" ID="CircuitPythonFirmwareSelectionDialog.on_retestButton_clicked"></a> -<h4>CircuitPythonFirmwareSelectionDialog.on_retestButton_clicked</h4> -<b>on_retestButton_clicked</b>(<i></i>) - -<p> - Private slot to research for the selected volume. -</p> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/eric6/Documentation/Source/eric6.MicroPython.EspDevices.html Fri Feb 12 19:16:12 2021 +0100 +++ b/eric6/Documentation/Source/eric6.MicroPython.EspDevices.html Fri Feb 12 19:16:59 2021 +0100 @@ -150,6 +150,10 @@ <td>Public method to get the device firmware download URL.</td> </tr> <tr> +<td><a href="#EspDevice.hasFlashMenuEntry">hasFlashMenuEntry</a></td> +<td>Public method to check, if the device has its own flash menu entry.</td> +</tr> +<tr> <td><a href="#EspDevice.runScript">runScript</a></td> <td>Public method to run the given Python script.</td> </tr> @@ -430,6 +434,25 @@ str </dd> </dl> +<a NAME="EspDevice.hasFlashMenuEntry" ID="EspDevice.hasFlashMenuEntry"></a> +<h4>EspDevice.hasFlashMenuEntry</h4> +<b>hasFlashMenuEntry</b>(<i></i>) + +<p> + Public method to check, if the device has its own flash menu entry. +</p> +<dl> +<dt>Return:</dt> +<dd> +flag indicating a specific flash menu entry +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +bool +</dd> +</dl> <a NAME="EspDevice.runScript" ID="EspDevice.runScript"></a> <h4>EspDevice.runScript</h4> <b>runScript</b>(<i>script</i>)
--- a/eric6/Documentation/Source/eric6.MicroPython.MicroPythonDevices.html Fri Feb 12 19:16:12 2021 +0100 +++ b/eric6/Documentation/Source/eric6.MicroPython.MicroPythonDevices.html Fri Feb 12 19:16:59 2021 +0100 @@ -150,6 +150,10 @@ <td>Public method to check, if the device has a configured firmware download URL.</td> </tr> <tr> +<td><a href="#MicroPythonDevice.hasFlashMenuEntry">hasFlashMenuEntry</a></td> +<td>Public method to check, if the device has its own flash menu entry.</td> +</tr> +<tr> <td><a href="#MicroPythonDevice.hasTimeCommands">hasTimeCommands</a></td> <td>Public method to check, if the device supports time commands.</td> </tr> @@ -474,6 +478,25 @@ bool </dd> </dl> +<a NAME="MicroPythonDevice.hasFlashMenuEntry" ID="MicroPythonDevice.hasFlashMenuEntry"></a> +<h4>MicroPythonDevice.hasFlashMenuEntry</h4> +<b>hasFlashMenuEntry</b>(<i></i>) + +<p> + Public method to check, if the device has its own flash menu entry. +</p> +<dl> +<dt>Return:</dt> +<dd> +flag indicating a specific flash menu entry +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +bool +</dd> +</dl> <a NAME="MicroPythonDevice.hasTimeCommands" ID="MicroPythonDevice.hasTimeCommands"></a> <h4>MicroPythonDevice.hasTimeCommands</h4> <b>hasTimeCommands</b>(<i></i>) @@ -707,17 +730,17 @@ <dl> <dt>Return:</dt> <dd> -tuple containing a list of tuples with the board type, a - description and the serial port it is connected at for known device - types and a list of tuples with VID, PID and description for unknown - devices +tuple containing a list of tuples with the board type, the port + description, a description, the serial port it is connected at, the + VID and PID for known device types and a list of tuples with VID, PID + and description for unknown devices </dd> </dl> <dl> <dt>Return Type:</dt> <dd> -tuple of (list of tuples of (str, str, str), list of tuples of - (int, int, str) +tuple of (list of tuples of (str, str, str, str, int, int), + list of tuples of (int, int, str) </dd> </dl> <div align="right"><a href="#top">Up</a></div>
--- a/eric6/Documentation/Source/eric6.MicroPython.MicroPythonWidget.html Fri Feb 12 19:16:12 2021 +0100 +++ b/eric6/Documentation/Source/eric6.MicroPython.MicroPythonWidget.html Fri Feb 12 19:16:59 2021 +0100 @@ -130,6 +130,10 @@ <td>Private method to open a web browser for the given URL.</td> </tr> <tr> +<td><a href="#MicroPythonWidget.__flashUF2">__flashUF2</a></td> +<td>Private slot to flash MicroPython/CircuitPython to a device support the UF2 bootloader.</td> +</tr> +<tr> <td><a href="#MicroPythonWidget.__getDeviceTime">__getDeviceTime</a></td> <td>Private method to get a string containing the date and time of the connected device.</td> </tr> @@ -418,6 +422,14 @@ URL to be opened </dd> </dl> +<a NAME="MicroPythonWidget.__flashUF2" ID="MicroPythonWidget.__flashUF2"></a> +<h4>MicroPythonWidget.__flashUF2</h4> +<b>__flashUF2</b>(<i></i>) + +<p> + Private slot to flash MicroPython/CircuitPython to a device + support the UF2 bootloader. +</p> <a NAME="MicroPythonWidget.__getDeviceTime" ID="MicroPythonWidget.__getDeviceTime"></a> <h4>MicroPythonWidget.__getDeviceTime</h4> <b>__getDeviceTime</b>(<i></i>)
--- a/eric6/Documentation/Source/eric6.MicroPython.MicrobitDevices.html Fri Feb 12 19:16:12 2021 +0100 +++ b/eric6/Documentation/Source/eric6.MicroPython.MicrobitDevices.html Fri Feb 12 19:16:59 2021 +0100 @@ -126,6 +126,10 @@ <td>Public method to retrieve the entries for the downloads menu.</td> </tr> <tr> +<td><a href="#MicrobitDevice.hasFlashMenuEntry">hasFlashMenuEntry</a></td> +<td>Public method to check, if the device has its own flash menu entry.</td> +</tr> +<tr> <td><a href="#MicrobitDevice.hasTimeCommands">hasTimeCommands</a></td> <td>Public method to check, if the device supports time commands.</td> </tr> @@ -383,6 +387,25 @@ list of tuple of (str, str) </dd> </dl> +<a NAME="MicrobitDevice.hasFlashMenuEntry" ID="MicrobitDevice.hasFlashMenuEntry"></a> +<h4>MicrobitDevice.hasFlashMenuEntry</h4> +<b>hasFlashMenuEntry</b>(<i></i>) + +<p> + Public method to check, if the device has its own flash menu entry. +</p> +<dl> +<dt>Return:</dt> +<dd> +flag indicating a specific flash menu entry +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +bool +</dd> +</dl> <a NAME="MicrobitDevice.hasTimeCommands" ID="MicrobitDevice.hasTimeCommands"></a> <h4>MicrobitDevice.hasTimeCommands</h4> <b>hasTimeCommands</b>(<i></i>)
--- a/eric6/Documentation/Source/eric6.MicroPython.PyBoardDevices.html Fri Feb 12 19:16:12 2021 +0100 +++ b/eric6/Documentation/Source/eric6.MicroPython.PyBoardDevices.html Fri Feb 12 19:16:59 2021 +0100 @@ -145,6 +145,10 @@ <td>Public method to get the workspace directory.</td> </tr> <tr> +<td><a href="#PyBoardDevice.hasFlashMenuEntry">hasFlashMenuEntry</a></td> +<td>Public method to check, if the device has its own flash menu entry.</td> +</tr> +<tr> <td><a href="#PyBoardDevice.runScript">runScript</a></td> <td>Public method to run the given Python script.</td> </tr> @@ -497,6 +501,25 @@ str </dd> </dl> +<a NAME="PyBoardDevice.hasFlashMenuEntry" ID="PyBoardDevice.hasFlashMenuEntry"></a> +<h4>PyBoardDevice.hasFlashMenuEntry</h4> +<b>hasFlashMenuEntry</b>(<i></i>) + +<p> + Public method to check, if the device has its own flash menu entry. +</p> +<dl> +<dt>Return:</dt> +<dd> +flag indicating a specific flash menu entry +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +bool +</dd> +</dl> <a NAME="PyBoardDevice.runScript" ID="PyBoardDevice.runScript"></a> <h4>PyBoardDevice.runScript</h4> <b>runScript</b>(<i>script</i>)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/eric6/Documentation/Source/eric6.MicroPython.UF2FlashDialog.html Fri Feb 12 19:16:59 2021 +0100 @@ -0,0 +1,337 @@ +<!DOCTYPE html> +<html><head> +<title>eric6.MicroPython.UF2FlashDialog</title> +<meta charset="UTF-8"> +<style> +body { + background: #EDECE6; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #85774A; } +h2 { color: white; background: #85774A; } +h3 { color: white; background: #9D936E; } +h4 { color: white; background: #9D936E; } + +a { color: #BA6D36; } + +</style> +</head> +<body> +<a NAME="top" ID="top"></a> +<h1>eric6.MicroPython.UF2FlashDialog</h1> + +<p> +Module implementing a dialog to flash any UF2 capable device. +</p> +<h3>Global Attributes</h3> + +<table> +<tr><td>SupportedUF2Boards</td></tr> +</table> +<h3>Classes</h3> + +<table> + +<tr> +<td><a href="#UF2FlashDialog">UF2FlashDialog</a></td> +<td>Class implementing a dialog to flash any UF2 capable device.</td> +</tr> +</table> +<h3>Functions</h3> + +<table> + +<tr> +<td><a href="#getFoundDevices">getFoundDevices</a></td> +<td>Function to get the list of known serial devices supporting UF2.</td> +</tr> +</table> +<hr /> +<hr /> +<a NAME="UF2FlashDialog" ID="UF2FlashDialog"></a> +<h2>UF2FlashDialog</h2> + +<p> + Class implementing a dialog to flash any UF2 capable device. +</p> +<h3>Derived from</h3> +QDialog, Ui_UF2FlashDialog +<h3>Class Attributes</h3> + +<table> +<tr><td>DeviceTypeRole</td></tr><tr><td>DeviceVidPidRole</td></tr> +</table> +<h3>Class Methods</h3> + +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> + +<table> + +<tr> +<td><a href="#UF2FlashDialog.__init__">UF2FlashDialog</a></td> +<td>Constructor</td> +</tr> +<tr> +<td><a href="#UF2FlashDialog.__populate">__populate</a></td> +<td>Private method to (re-)populate the dialog.</td> +</tr> +<tr> +<td><a href="#UF2FlashDialog.__showAllInstructions">__showAllInstructions</a></td> +<td>Private method to show instructions for resetting devices to bootloader mode.</td> +</tr> +<tr> +<td><a href="#UF2FlashDialog.__showManualInstructions">__showManualInstructions</a></td> +<td>Private method to show instructions for flashing devices manually.</td> +</tr> +<tr> +<td><a href="#UF2FlashDialog.__showMultipleVolumesInformation">__showMultipleVolumesInformation</a></td> +<td>Private method to show information because multiple devices of the same type are ready for flashing.</td> +</tr> +<tr> +<td><a href="#UF2FlashDialog.__showNoVolumeInformation">__showNoVolumeInformation</a></td> +<td>Private method to show information about the expected boot volume(s).</td> +</tr> +<tr> +<td><a href="#UF2FlashDialog.__showSpecificInstructions">__showSpecificInstructions</a></td> +<td>Private method to show instructions for resetting devices to bootloader mode for a list of detected devices.</td> +</tr> +<tr> +<td><a href="#UF2FlashDialog.__showTypedInstructions">__showTypedInstructions</a></td> +<td>Private method to show instructions for resetting devices to bootloader mode for a specific board type.</td> +</tr> +<tr> +<td><a href="#UF2FlashDialog.__updateFlashButton">__updateFlashButton</a></td> +<td>Private method to update the state of the Flash button and the retest button.</td> +</tr> +<tr> +<td><a href="#UF2FlashDialog.on_bootPicker_textChanged">on_bootPicker_textChanged</a></td> +<td>Private slot handling a change of the boot volume.</td> +</tr> +<tr> +<td><a href="#UF2FlashDialog.on_devicesComboBox_currentIndexChanged">on_devicesComboBox_currentIndexChanged</a></td> +<td>Private slot to handle the selection of a board.</td> +</tr> +<tr> +<td><a href="#UF2FlashDialog.on_firmwarePicker_textChanged">on_firmwarePicker_textChanged</a></td> +<td>Private slot handling a change of the firmware file.</td> +</tr> +<tr> +<td><a href="#UF2FlashDialog.on_flashButton_clicked">on_flashButton_clicked</a></td> +<td>Private slot to flash the selected MicroPython or CircuitPython firmware onto the device.</td> +</tr> +<tr> +<td><a href="#UF2FlashDialog.on_refreshButton_clicked">on_refreshButton_clicked</a></td> +<td>Private slot to refresh the dialog.</td> +</tr> +</table> +<h3>Static Methods</h3> + +<table> +<tr><td>None</td></tr> +</table> + +<a NAME="UF2FlashDialog.__init__" ID="UF2FlashDialog.__init__"></a> +<h4>UF2FlashDialog (Constructor)</h4> +<b>UF2FlashDialog</b>(<i>boardType="", parent=None</i>) + +<p> + Constructor +</p> +<dl> + +<dt><i>boardType</i> (str)</dt> +<dd> +specific board type to show the dialog for +</dd> +<dt><i>parent</i> (QWidget (optional))</dt> +<dd> +reference to the parent widget (defaults to None) +</dd> +</dl> +<a NAME="UF2FlashDialog.__populate" ID="UF2FlashDialog.__populate"></a> +<h4>UF2FlashDialog.__populate</h4> +<b>__populate</b>(<i></i>) + +<p> + Private method to (re-)populate the dialog. +</p> +<a NAME="UF2FlashDialog.__showAllInstructions" ID="UF2FlashDialog.__showAllInstructions"></a> +<h4>UF2FlashDialog.__showAllInstructions</h4> +<b>__showAllInstructions</b>(<i></i>) + +<p> + Private method to show instructions for resetting devices to bootloader + mode. +</p> +<a NAME="UF2FlashDialog.__showManualInstructions" ID="UF2FlashDialog.__showManualInstructions"></a> +<h4>UF2FlashDialog.__showManualInstructions</h4> +<b>__showManualInstructions</b>(<i></i>) + +<p> + Private method to show instructions for flashing devices manually. +</p> +<a NAME="UF2FlashDialog.__showMultipleVolumesInformation" ID="UF2FlashDialog.__showMultipleVolumesInformation"></a> +<h4>UF2FlashDialog.__showMultipleVolumesInformation</h4> +<b>__showMultipleVolumesInformation</b>(<i>volumePaths</i>) + +<p> + Private method to show information because multiple devices of the + same type are ready for flashing. +</p> +<p> + Note: This is a dangerous situation! +</p> +<dl> + +<dt><i>volumePaths</i> (list of str)</dt> +<dd> +list of volume paths +</dd> +</dl> +<a NAME="UF2FlashDialog.__showNoVolumeInformation" ID="UF2FlashDialog.__showNoVolumeInformation"></a> +<h4>UF2FlashDialog.__showNoVolumeInformation</h4> +<b>__showNoVolumeInformation</b>(<i>volumes</i>) + +<p> + Private method to show information about the expected boot volume(s). +</p> +<dl> + +<dt><i>volumes</i> (list of str)</dt> +<dd> +list of expected volume names +</dd> +</dl> +<a NAME="UF2FlashDialog.__showSpecificInstructions" ID="UF2FlashDialog.__showSpecificInstructions"></a> +<h4>UF2FlashDialog.__showSpecificInstructions</h4> +<b>__showSpecificInstructions</b>(<i>devices</i>) + +<p> + Private method to show instructions for resetting devices to bootloader + mode for a list of detected devices. +</p> +<dl> + +<dt><i>devices</i> (list of str)</dt> +<dd> +list of detected devices +</dd> +</dl> +<a NAME="UF2FlashDialog.__showTypedInstructions" ID="UF2FlashDialog.__showTypedInstructions"></a> +<h4>UF2FlashDialog.__showTypedInstructions</h4> +<b>__showTypedInstructions</b>(<i>boardType</i>) + +<p> + Private method to show instructions for resetting devices to bootloader + mode for a specific board type. +</p> +<dl> + +<dt><i>boardType</i> (str)</dt> +<dd> +type of the board to show instructions for +</dd> +</dl> +<a NAME="UF2FlashDialog.__updateFlashButton" ID="UF2FlashDialog.__updateFlashButton"></a> +<h4>UF2FlashDialog.__updateFlashButton</h4> +<b>__updateFlashButton</b>(<i></i>) + +<p> + Private method to update the state of the Flash button and the retest + button. +</p> +<a NAME="UF2FlashDialog.on_bootPicker_textChanged" ID="UF2FlashDialog.on_bootPicker_textChanged"></a> +<h4>UF2FlashDialog.on_bootPicker_textChanged</h4> +<b>on_bootPicker_textChanged</b>(<i>text</i>) + +<p> + Private slot handling a change of the boot volume. +</p> +<dl> + +<dt><i>text</i> (str)</dt> +<dd> +current text of the boot volume edit +</dd> +</dl> +<a NAME="UF2FlashDialog.on_devicesComboBox_currentIndexChanged" ID="UF2FlashDialog.on_devicesComboBox_currentIndexChanged"></a> +<h4>UF2FlashDialog.on_devicesComboBox_currentIndexChanged</h4> +<b>on_devicesComboBox_currentIndexChanged</b>(<i>index</i>) + +<p> + Private slot to handle the selection of a board. +</p> +<dl> + +<dt><i>index</i> (int)</dt> +<dd> +selected index +</dd> +</dl> +<a NAME="UF2FlashDialog.on_firmwarePicker_textChanged" ID="UF2FlashDialog.on_firmwarePicker_textChanged"></a> +<h4>UF2FlashDialog.on_firmwarePicker_textChanged</h4> +<b>on_firmwarePicker_textChanged</b>(<i>text</i>) + +<p> + Private slot handling a change of the firmware file. +</p> +<dl> + +<dt><i>text</i> (str)</dt> +<dd> +current text of the firmware edit +</dd> +</dl> +<a NAME="UF2FlashDialog.on_flashButton_clicked" ID="UF2FlashDialog.on_flashButton_clicked"></a> +<h4>UF2FlashDialog.on_flashButton_clicked</h4> +<b>on_flashButton_clicked</b>(<i></i>) + +<p> + Private slot to flash the selected MicroPython or CircuitPython + firmware onto the device. +</p> +<a NAME="UF2FlashDialog.on_refreshButton_clicked" ID="UF2FlashDialog.on_refreshButton_clicked"></a> +<h4>UF2FlashDialog.on_refreshButton_clicked</h4> +<b>on_refreshButton_clicked</b>(<i></i>) + +<p> + Private slot to refresh the dialog. +</p> +<div align="right"><a href="#top">Up</a></div> +<hr /> +<hr /> +<a NAME="getFoundDevices" ID="getFoundDevices"></a> +<h2>getFoundDevices</h2> +<b>getFoundDevices</b>(<i>boardType=""</i>) + +<p> + Function to get the list of known serial devices supporting UF2. +</p> +<dl> + +<dt><i>boardType</i> (str)</dt> +<dd> +specific board type to search for +</dd> +</dl> +<dl> +<dt>Return:</dt> +<dd> +list of tuples with the board type, the port description, the + VID and PID +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +list of tuple of (str, str, int, int) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- a/eric6/Documentation/Source/index-eric6.MicroPython.html Fri Feb 12 19:16:12 2021 +0100 +++ b/eric6/Documentation/Source/index-eric6.MicroPython.html Fri Feb 12 19:16:59 2021 +0100 @@ -38,10 +38,6 @@ <td>Module implementing the device interface class for CircuitPython boards.</td> </tr> <tr> -<td><a href="eric6.MicroPython.CircuitPythonFirmwareSelectionDialog.html">CircuitPythonFirmwareSelectionDialog</a></td> -<td>Module implementing a dialog to enter the firmware flashing data.</td> -</tr> -<tr> <td><a href="eric6.MicroPython.EspBackupRestoreFirmwareDialog.html">EspBackupRestoreFirmwareDialog</a></td> <td>Module implementing a dialog to select the ESP chip type and the backup and restore parameters.</td> </tr> @@ -106,6 +102,10 @@ <td>Module implementing the device interface class for PyBoard boards.</td> </tr> <tr> +<td><a href="eric6.MicroPython.UF2FlashDialog.html">UF2FlashDialog</a></td> +<td>Module implementing a dialog to flash any UF2 capable device.</td> +</tr> +<tr> <td><a href="eric6.MicroPython.UnknownDevicesDialog.html">UnknownDevicesDialog</a></td> <td>Module implementing a dialog to manage the list of unknown devices.</td> </tr>