I am using an instance of the monaco editor in Python Qt (Pyside2) using QWebEngineView similar to how it's shown here: How to embed basic HTML page using Qt?
I can edit the code just like in monaco editor. But how can I call functions to get and set the current value of the editor?
I only saw React examples but not Python, so not sure how to do the same thing in Python.
Is this possible to do using Python Qt (Pyside2)?
EDIT: Found this link that shows how to do it for Pyside2: https://www.itdaan.com/tw/66b0f712b22ff6e617b7b493f7c3c841
Although trying this I get no name called monaco. I will try to simplify the code.
In this case it is to use QtWebChannel to exchange information between python and javascript as I show below:
main.py
index.js
index.html