Module implementing the MicroPython REPL widget.
HAS_QTCHART |
HAS_QTSERIALPORT |
MicroPythonWidget | Class implementing the MicroPython REPL widget. |
None |
Class implementing the MicroPython REPL widget.
DeviceBoardRole |
DeviceInterfaceTypeRole |
DevicePidRole |
DevicePortRole |
DeviceSerNoRole |
DeviceTypeRole |
DeviceVidRole |
DeviceWebreplUrlRole |
ManualMarker |
None |
MicroPythonWidget | Constructor |
__aboutToShowSuperMenu | Private slot to populate the Super Menu before showing it. |
__addUnknownDevices | Private method to add devices to the list of manually added boards. |
__compileEditor2Mpy | Private slot to cross compile the current editor to a .mpy file. |
__compileFile2Mpy | Private slot to cross compile a Python file (*.py) to a .mpy file. |
__configure | Private slot to open the MicroPython configuration page. |
__configureWebreplUrls | Private slot to configure the list of selectable WebREPL URLs. |
__connectToDevice | Private method to connect to the selected device. |
__convertToUF2 | Private slot to convert a non-UF2 MicroPython firmware file to UF2. |
__crossCompile | Private method to cross compile a Python file to a .mpy file. |
__disconnectFromDevice | Private method to disconnect from the device. |
__downloadFirmware | Private slot to open the firmware download page. |
__downloadFromUrl | Private method to open a web browser for the given URL. |
__flashUF2 | Private slot to flash MicroPython/CircuitPython to a device support the UF2 bootloader. |
__getDeviceTime | Private method to get a string containing the date and time of the connected device. |
__handlePreferencesChanged | Private slot to handle a change in preferences. |
__installPackage | Private slot to install packages using the given method. |
__manageIgnored | Private slot to manage the list of ignored serial devices. |
__manageUnknownDevices | Private slot to manage manually added boards (i.e. |
__mpyCrossAvailable | Private method to check the availability of mpy-cross. |
__populateDeviceTypeComboBox | Private method to populate the device type selector. |
__quit | Private slot to quit the main (MicroPython) window. |
__setConnected | Private method to set the connection status LED. |
__showBoardInformation | Private slot to show all available information about a board. |
__showBuiltinModules | Private slot to show a list of builtin modules. |
__showDeviceTime | Private slot to show the date and time of the connected device. |
__showDeviceVersion | Private slot to show some version info about MicroPython of the device. |
__showDocumentation | Private slot to open the documentation URL for the selected device. |
__showImplementation | Private slot to show some implementation related information. |
__showLocalAndDeviceTime | Private slot to show the local and device time side-by-side. |
__showLocalTime | Private slot to show the local date and time. |
__showNoDeviceMessage | Private method to show a message dialog indicating a missing device. |
__synchronizeTime | Private slot to set the time of the connected device to the local computer's time. |
deviceInterface | Public method to get a reference to the device interface object. |
deviceSupportsLocalFileAccess | Public method to indicate that the device access the device file system via a local directory. |
getCurrentPort | Public method to determine the port path of the selected device. |
getDevice | Public method to get a reference to the current device. |
getDeviceWorkspace | Public method to get the workspace directory of the device. |
getFileManager | Public method to get a reference to the file manager interface. |
handleDataFlood | Public slot handling a data flood from the device. |
isConnected | Public method to get the MicroPython device connection state. |
isLinkConnected | Public method to get the link connection state. |
isMicrobit | Public method to check, if the connected/selected device is a BBC micro:bit or Calliope mini. |
on_chartButton_clicked | Private slot to open a chart view to plot data received from the connected device. |
on_connectButton_clicked | Private slot to connect to the selected device or disconnect from the currently connected device. |
on_deviceTypeComboBox_activated | Private slot handling the selection of a device type. |
on_filesButton_clicked | Private slot to open a file manager window to the connected device. |
on_replButton_clicked | Private slot to connect to enable or disable the REPL widget. |
on_runButton_clicked | Private slot to execute the script of the active editor on the selected device. |
setActionButtons | Public method to set the enabled state of the various action buttons. |
showError | Public method to show some error message. |
shutdown | Public method to perform some shutdown actions. |
None |
Constructor
Private slot to populate the Super Menu before showing it.
Private method to add devices to the list of manually added boards.
Private slot to cross compile the current editor to a .mpy file.
Private slot to cross compile a Python file (*.py) to a .mpy file.
Private slot to open the MicroPython configuration page.
Private slot to configure the list of selectable WebREPL URLs.
Private method to connect to the selected device.
Private slot to convert a non-UF2 MicroPython firmware file to UF2.
Private method to cross compile a Python file to a .mpy file.
Private method to disconnect from the device.
Private slot to open the firmware download page.
Private method to open a web browser for the given URL.
Private slot to flash MicroPython/CircuitPython to a device support the UF2 bootloader.
Private method to get a string containing the date and time of the connected device.
Private slot to handle a change in preferences.
Private slot to install packages using the given method.
Private slot to manage the list of ignored serial devices.
Private slot to manage manually added boards (i.e. those not in the list of supported boards).
Private method to check the availability of mpy-cross.
Private method to populate the device type selector.
Private slot to quit the main (MicroPython) window.
Private method to set the connection status LED.
Private slot to show all available information about a board.
Private slot to show a list of builtin modules.
Private slot to show the date and time of the connected device.
Private slot to show some version info about MicroPython of the device.
Private slot to open the documentation URL for the selected device.
Private slot to show some implementation related information.
Private slot to show the local and device time side-by-side.
Private slot to show the local date and time.
Private method to show a message dialog indicating a missing device.
Private slot to set the time of the connected device to the local computer's time.
Public method to get a reference to the device interface object.
Public method to indicate that the device access the device file system via a local directory.
Public method to determine the port path of the selected device.
Public method to get a reference to the current device.
Public method to get the workspace directory of the device.
Public method to get a reference to the file manager interface.
Public slot handling a data flood from the device.
Public method to get the MicroPython device connection state.
Public method to get the link connection state.
Public method to check, if the connected/selected device is a BBC micro:bit or Calliope mini.
Private slot to open a chart view to plot data received from the connected device.
If the selected device is not connected yet, this will be done now.
Private slot to connect to the selected device or disconnect from the currently connected device.
Private slot handling the selection of a device type.
Private slot to open a file manager window to the connected device.
If the selected device is not connected yet, this will be done now.
Private slot to connect to enable or disable the REPL widget.
If the selected device is not connected yet, this will be done now.
Private slot to execute the script of the active editor on the selected device.
If the REPL is not active yet, it will be activated, which might cause an unconnected device to be connected.
Public method to set the enabled state of the various action buttons.
Public method to show some error message.
Public method to perform some shutdown actions.