Add a Python interpreter to your Xojo applications
MBS Xojo Python Plugin
The MBS Xojo Python Plugin and the new PythonMBS class allows you to evaluate Python code in Xojo and run scripts.
- Use Python code within your Xojo application.
- Load a python 3.x library from a given path. You need to bring the python folder or install python via official installer or package manager.
- Import existing Python modules
- Register custom functions to call to Xojo code from Python
- Converts data types between Xojo and Python including arrays and dictionaries.
- Evaluate Python expressions
- Redirect print() function in Python to Xojo event to capture console output.
- Report problems in Python with Xojo exceptions.
- Run existing Python scripts in the context of your applications.
- Query and set variables in Python in your Xojo code.
- Use multiple Python environments with local variables simultaneously.
Get started with this introduction to using the MBS Xojo Python Plugin, which covers the following:
- Initialization
- Check Version
- Print Hello World
- Process JSON in Python
- Evaluate
The MBS Xojo Python Plugin utilizes the version of Python installed on the user computer.
Features | Platform Targets |
|
|