python-eel/Eel

Question: Call async Javascript function from Python

开放

#741 创建于 2024年9月9日

 (3 条评论) (0 个反应) (0 位负责人)Python (570 个派生)batch import
help wanted

仓库指标

星标
 (5,980 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南