python-eel/Eel

Question: Call async Javascript function from Python

Open

Aperta il 9 set 2024

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)Python (5980 star) (570 fork)batch import
help wanted

Descrizione

Maybe I'm stupid, but I don't understand how to call an async JS function from Python. For example:

eel.expose(test);
async function test() {
    console.log("Hello world!");
}

This does not work:

eel.test()

Guida contributor