python-eel/Eel

Question: Call async Javascript function from Python

Open

#741 opened on 2024年9月9日

GitHub で見る
 (3 comments) (0 reactions) (0 assignees)Python (5,980 stars) (570 forks)batch import
help wanted

説明

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

コントリビューターガイド