3 ms·
Without actually reading the documentation or source code -- I guess "js" package is just an API that somehow maps to the real "window" object and calls those D
by rty32 2y ago
Without actually reading the documentation or source code -- I guess "js" package is just an API that somehow maps to the real "window" object and calls those DOM methods via some sort of Proxy object.
- mg 2y agoProbably. It is part of Pyodide, not something this PyScript project adds: https://pyodide.org/en/stable/usage/quickstart.html#accessing-javascript-scope-from-python https://pyodide.org/en/stable/usage/quickstart.html#accessin...