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

Multiple pages with eel #335

Closed felipexlr50 closed 4 years ago

felipexlr50 commented 4 years ago

Hi, I started recently in eel, and made my first application with it, but I need multiple pages html for my app, how I setup this in the python code that start the eel.init() and eel.start("index.html")?

samuelhwilliams commented 4 years ago

Hi @felipexlr50 - this is supported just fine. You put the page you want to start on into eel.start, then just make sure that a script tag for eel.js is present in all HTML pages you build. It should "just work" 🤞

Let us know how you get on!

felipexlr50 commented 4 years ago

Thanks, that works

ghost commented 3 years ago

I got solution for this, to use multiple pages you just have use this little javascript function i.e window.location = "new.html" and must include eel.js in your html file