python-eel/Eel

Question: Call async Javascript function from Python

Open

#741 geöffnet am 9. Sept. 2024

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (5.980 Stars) (570 Forks)batch import
help wanted

Beschreibung

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()

Contributor Guide