Why isn't return working? Where is the mistake?
-
Hello! Return does not work in python function. Java script console.log () outputs null.
JavaScript code:
var tut = eel.istatus(); console.log(tut) if (tut == "show"){ $('.main').toggle(); };
Python code:
@eel.expose def istatus(): with open("tstatus.ini") as file: tstatus = file.read() if tstatus == "1": itut = "show" return itut
JavaScript Anonymous, Mar 21, 2019 -
tstatus is not equal to "1"Mila Lamb
1 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!