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

How to use tkinter to open eel ? #515

Open Alban1505 opened 3 years ago

Alban1505 commented 3 years ago

Hi, I would like to know if it was possible to run eel in a tkinter application to get a cleaner result.

Thank you in advance for your response !

tapxyh4ik commented 3 years ago

The question is not entirely correct, but use 2 functions with initialization of tkinter and eel.

CristoferEze commented 1 year ago

You could make use of any widget or a button that calls the method to start the html file. Firstly, you should import the eel and threading libraries (since "threading" is used to prevent the tkinter application from crashing).

This calls the html file via "eel":

eel.start('index.html')