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

貢獻者指南