python-eel / Eel

A little Python library for making simple Electron-like HTML/JS GUI apps
MIT License
6.44k stars 587 forks source link

eel.stop(), eel.exit() or eel.quit() function to close browser app #564

Open prateekrajgautam opened 2 years ago

prateekrajgautam commented 2 years ago

Is your feature request related to a problem? Please describe. I want to close app after taking inputs from user,

Describe the solution you'd like as eel.start is user to open app or browser there may be and option to close same browser

Describe alternatives you've consideredright not I have to as user to close browser after inputs.

GBry commented 2 years ago

in JS:

function closeWindow() {
  let new_window =
    open(location, '_self');
  new_window.top.close();
  }

Then call the function from a link or button or anything in HTML.