R
R
ReDeNDeR2021-10-24 09:33:22
Python
ReDeNDeR, 2021-10-24 09:33:22

How to exit a function in 'eel'?

Good afternoon, the question may be simple, but I can't find anything.

Python:

import eel

eel.init('web')

@eel.expose
def call_in_js(x):
  print(x)

print(1)
eel.start('index.html')
print(2)


javascript:
async function call(){
  await eel.call_in_js("Hello, from JS");
}

call();

The terminal says:
1
Hello, from JS

but I need it to continue executing the code after the function, that is, what would be written in the terminal:

Hello, from JS
1

or

Hello, from JS
2

Thanks for the answers

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question