mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 10:47:35 -05:00
* Patch js.document out of the box * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
13 lines
199 B
Python
13 lines
199 B
Python
import a
|
|
from pyscript import display, sync
|
|
|
|
display("Hello World", target="test", append=True)
|
|
|
|
print("sleeping")
|
|
sync.sleep(1)
|
|
print("awake")
|
|
|
|
import js
|
|
|
|
js.document.body.append("document patch ")
|