Closed miladsade96 closed 3 years ago
What value will be obtained from the image_loader function? try this.
HTML:
<button id="load" onclick="get_image()">Load</button>
Javascript:
function get_image(){
// runs eel's image_loader function
eel.image_loader();
}
@rahmatagungj The problem is solved! Thank you
Hi there, We used eel package to connect python back-end with javascript front-end in our project.
We used eel.expose decorator in python file to call python functions in JS side. We have some buttons in index.html so that whenever we click on any button , the corresponding python function should run. But none of them does not work.
For example:
and the javascript codes:
OS: Linux, Manjaro KDE Python vesion: 3.9 Browser: Chromium