You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature to run Python code in the renderer process and call synchronously CEF API such as V8/DOM and others #320
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 :-).
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.
Activity
BrenBarn commentedon 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 commentedon May 5, 2017
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.