python-eel / Eel

A little Python library for making simple Electron-like HTML/JS GUI apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Thread doesn't end after closing, no matter how long I wait.

abhradeepde123 opened this issue · comments

Describe the problem
I want the thread the program is running in to close when the user clicks the 'X' button.

Code snippet(s)
Here is some code that can be easily used to reproduce the problem or understand what I need help with.

import eel


def atexit(url_closed, open_sockets):
    print(url_closed, open_sockets)


eel.init("gui")
eel.start("index.html", size=(800, 600), close_callback=atexit)
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
</html>

Desktop:

  • OS: Windows
  • Browser: Google Chrome
  • Version: Windows 11, Chrome insert latest chrome version here

nvm i found a fix