keybraker / python-gui-electron

A simple example on how to create electron GUIs for python programs
381 stars 41 forks source link

Thank you very much for your project! #11

Open hismeyy opened 8 months ago

hismeyy commented 8 months ago

Thank you very much for your project. How can I package it? Is it possible to package it as a Windows executable (exe) file?

joralgra commented 7 months ago

was wondering the same, missed out something about it in the README

keybraker commented 7 months ago

This is out of scope for this showcasing. The idea behind this project is to display a way for someone to develop a front end for their python application, there are apps like PyInstaller with which you can build an executable for your python code and electron-packager or electron-builder to build an exe for the electron front end.

Than you can use applications to bundle those executables like Inno Setup or NSIS in order for the backend to be called as a subprocess.

I hope this helps

riziles commented 7 months ago

@joralgra and @hismeyy , no disrespect to Electron or @keybraker 's excellent work here, but what you are describing is actually really easy to do with with pywebview + PyInstaller.

keybraker commented 7 months ago

@riziles there is no disrespect, this is the whole reason why this exists (to help people build things). So thank you for your input.