DEV Community

Discussion on: How i add global script eel.js in svelte-sapper proyect and use eel.expose?

Collapse
 
tlaxcalajuan profile image
tlaxcalajuan

import eel
eel.init('sapper/export')
eel.start('index.html',port=8080)

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

print('Calling Javascript...')
eel.my_javascript_function(1, 2, 3, 4)

eel.say_hello_js('vrce')