Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature to run Python code in the renderer process and call synchronously CEF API such as V8/DOM and others #320

Open
cztomczak opened this issue Mar 11, 2017 · 2 comments

Comments

@cztomczak
Copy link
Owner

Materials for embedding Python using C++:

@BrenBarn
Copy link

BrenBarn commented May 5, 2017

Would this feature allow manipulation of the DOM directly from Python? Right now the need to constantly shunt everything through JavaScript kind of undercuts the utility of being able to embed the browser. It would be nice to be able to do all the actual DOM manipulation in Python, without having to sully ourselves with JS at all :-).

@cztomczak
Copy link
Owner Author

CEF DOM API is very limited, many things are still required to be done using Javascript. CEF DOM API functions can be found in cef_dom.h header file: https://github.com/cztomczak/cefpython/blob/master/src/include/cef_dom.h

Most of Python code is running in application's main process. The Python code running in the Renderer process can communicate only asynchronously with the Python code in the main process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants