new PythonToBlocks()
An object for converting Python source code to the
Blockly XML representation.
This:
- Source:
Methods
convertSource(python_source) → {Object}
The main function for converting a string representation of Python
code to the Blockly XML representation.
Parameters:
Name | Type | Description |
---|---|---|
python_source |
string | The string representation of Python code (e.g., "a = 0"). |
- Source:
Returns:
An object which will either have the converted
source code or an error message and the code as a code-block.
- Type
- Object