StudioPro Python Extension
Overview
# Mendix Python Extension Playground
## Architecture Flow Explanation
python -> python.net -> c# -(webview post message)-> iframe -(onMessage)-> js -(post message)-> ifrmae -> c# -(on webview message)-> python.net -> python
1. **Python Layer**: The initial Python application serves as the main entry point
2. **Python.NET Bridge**: Enables Python to communicate with .NET/C# components
3. **C# Component**: Handles the WebView and browser integration
4. **WebView Communication**:
- C# sends messages to iframe via WebView Post Message
- JavaScript in iframe receives messages via onMessage handler
- JavaScript sends response messages back to iframe
- C# captures these messages via On WebView Message handler
5. **Return Path**: Messages flow back through Python.NET to the Python layer
This bidirectional communication allows seamless integration between Python logic and web-based UI components within the Mendix environment.
## Instructions
1. **Start the Studio Pro**
```powershell
&"C:\Program Files\Mendix\10.24.1.74050\modeler\studiopro.exe" --enable-extension-development "D:\Users\{Your Name}\Mendix\App\App.mpr"
```
2. **Start the Python Extension Playground**: `Extensions` -> `PythonIDE` -> `Open My Dockable Pane`
3. **Start backend**: click `Run` button
4. **Start frontend**: click `Preview` button
Documentation
# Mendix Python Extension Playground
## Architecture Flow Explanation
python -> python.net -> c# -(webview post message)-> iframe -(onMessage)-> js -(post message)-> ifrmae -> c# -(on webview message)-> python.net -> python
1. **Python Layer**: The initial Python application serves as the main entry point
2. **Python.NET Bridge**: Enables Python to communicate with .NET/C# components
3. **C# Component**: Handles the WebView and browser integration
4. **WebView Communication**:
- C# sends messages to iframe via WebView Post Message
- JavaScript in iframe receives messages via onMessage handler
- JavaScript sends response messages back to iframe
- C# captures these messages via On WebView Message handler
5. **Return Path**: Messages flow back through Python.NET to the Python layer
This bidirectional communication allows seamless integration between Python logic and web-based UI components within the Mendix environment.
## Instructions
1. **Start the Studio Pro**
```powershell
&"C:\Program Files\Mendix\10.24.1.74050\modeler\studiopro.exe" --enable-extension-development "D:\Users\{Your Name}\Mendix\App\App.mpr"
```
2. **Start the Python Extension Playground**: `Extensions` -> `PythonIDE` -> `Open My Dockable Pane`
3. **Start backend**: click `Run` button
4. **Start frontend**: click `Preview` button