python-eel/Eel

Question: Call async Javascript function from Python

Open

#741 创建于 2024年9月9日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)Python (5,980 star) (570 fork)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()

贡献者指南