pmp-p / micropython-ports-wasm

*experimental* wasm micropython port *not a fork* for Pythons Everywhere
http://pmp-p.github.io/layout.html
37 stars 1 forks source link

QUESTIONS: DOM interaction #2

Closed dmazzella closed 3 years ago

dmazzella commented 5 years ago

is there any way to interact with the DOM?

pmp-p commented 5 years ago

it's planned but aiolink https://github.com/pmp-p/aiolink experiment is a bit too cpython for micropython so probably i'll try synchronous interaction first.

pmp-p commented 5 years ago

POC of DOM control demonstrating the brython clock https://brython.info/gallery/clock.html with very litle change to code ( with block + asyncio calls , as timer is not javascript )

https://pmp-p.github.io/micropython-next/dom-rw.html?dev