Closed hi-Nobody closed 3 years ago
your function needs to be async
your function needs to be async
do you mean my code need to change to the following?:
function validate_form()
changes to async function validate_form()
and
eel.sign_in(myAccount.value, myPwd.value);
changes to await eel.sign_in(myAccount.value, myPwd.value);
But it is still can't print in terminal after I changed. Or could you teach me how to change? Thank you
eel.sign_in(myAccount.value, myPwd.value); changes to await eel.sign_in(myAccount.value, myPwd.value)();
One more () after the function
Try with this hope it will work..
eel.sign_in(myAccount.value, myPwd.value); changes to await eel.sign_in(myAccount.value, myPwd.value)();
One more () after the functionTry with this hope it will work..
I change
<script type="text/javascript" src="js/eel.js"></script>
,
function validate_form()
and
eel.sign_in(myAccount.value, myPwd.value);
to
<script type="text/javascript" src="/eel.js"></script>
,
async function validate_form()
and
await eel.sign_in(myAccount.value, myPwd.value)();
It's work!!!
Thank you very much~
Hi, I want to let my program print some information in terminal from front-end. But my JS call python seems failed. I always lock in the following code
eel.sign_in(myAccount.value, myPwd.value);
Could you help me solve problem, please Thank you~PYTHON:
sign_in.html:
sign_in.js: