Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

260
Views
El módulo Python eel no reconoce las funciones JS

cuando estoy llamando a la función JS a través de mi código python con eel.function()() dice "No se puede encontrar la 'función' de referencia en ' init .py'", parece estar funcionando bien en el video de mis maestros. Aquí está el código de Python:

 eel.init('web') def user_input(): eel.get_ready()() while True: loading = int(input("[+] start loading? 1/0")) if loading == 1: eel.js_start_loading()() elif loading == 0: eel.js_stop_loading()() eel.spawn(user_input()) eel.start('index.html', size=(850, 360), port=0)

Aquí está el código JS:

 var progress = null; eel.expose(js_start_loading); function js_start_loading() { progress = Metro.activity.open({ type: 'square', overlayColor: '#fff', overlayAlpha: 1, text: '<div class=\'mt-2 text-small\'>Please, wait...</div> }); } eel.expose(js_stop_loading); function js_stop_loading() { Metro.activity.close(progress); } eel.expose(get_ready); function get_ready() { $(document).ready(function(){ return true; }); }

Agradecería cualquier ayuda

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!