Building Standalone app using python and ElectronJs
When it comes to building a deployable standalone app forwindows or mac using python, We python developers have comparatively less
choices. The very first step is to choose a GUI kit for your python app. There
are several GUI kits available for python, like PyQT, Tkinter, Kivy, WxPython
etc. But all these are quite old and provide ancient looking GUIs. So To
provide morden looking GUIs the only and most efficient choice we have is
ElectronJs.
In this tutorial we will be using ElectronJS as front end
for your python app. ElectronJS is a tool by github, which lets us make cross platform
desktop apps by using HTML, CSS and JavaScript. So all you need to get started
is the basic knowledge of these web languages. Electron will work as a
middleware between HTML front end and python.
Above figure defines the architecture of how our Python-Electron
app will work. Electron is our front end and it makes and controls UI windows
which we need in our app. Content inside these windows will be put using HTML,
CSS and JavaScript. Python will be used as a back-end where we will write our
logic part of the app.
Essentials:
·
Python
·
NodeJs
·
ElectronJS
·
python-shell
After you have installed the above mentioned dependencies
you need to download Electron Quick start library using git.
# Clone the Quick Start repository
$ git clone https://github.com/electron/electron-quick-start
# Go into the repository
$ cd electron-quick-start

Comments
Post a Comment