mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 10:47:35 -05:00
* bootstrap *pyscript* module ASAP as stdlib * improve the test to be sure `js.document` exists **before** our module is imported
This commit is contained in:
committed by
GitHub
parent
40e99abbdf
commit
96e671b55f
@@ -1,12 +1,13 @@
|
||||
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 ")
|
||||
|
||||
import a
|
||||
from pyscript import RUNNING_IN_WORKER, display, sync
|
||||
|
||||
display("Hello World", target="test", append=True)
|
||||
|
||||
print(RUNNING_IN_WORKER)
|
||||
print("sleeping")
|
||||
sync.sleep(1)
|
||||
print("awake")
|
||||
|
||||
Reference in New Issue
Block a user