Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Call async Javascript function from Python #741

Open
Pibben opened this issue Sep 9, 2024 · 3 comments
Open

Question: Call async Javascript function from Python #741

Pibben opened this issue Sep 9, 2024 · 3 comments

Comments

@Pibben
Copy link

Pibben commented Sep 9, 2024

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()
@Pibben
Copy link
Author

Pibben commented Sep 10, 2024

@Matthew-05
Copy link

Out of curiosity, can you give a more specific example of when you want to do something like this? I'm struggling to come up with a specific use case I would want to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants