Let's not re-invent the wheel and use the Electron application we created in the previous tutorial. Using Electron, you can use take benefits of the Node.js APIs, the modern HTML5 APIs but also a rich and cross-platform API for accessing native operating system features and creating native windows and dialogs.įor more information, read the Electron tutorial. Electron also provides a Node.js runtime so you can use the Node.js APIs and ecosystem for building desktop apps (not just server apps and CLI tools). We assume here that you are a Flask developer so an Electron introduction might be useful.Įlectron is a platform, created by GitHub, to enable developers to create cross-platform desktop applications for Windows, Linux and macOS using web technologies i.e JavaScript, HTML and CSS.Įlectron is based on Chromium, just like Chrome and Opera (and many browsers) so it's actually a web container. If you already have an existing Flask application, you can easily target desktop apps without reinventing the wheel etc.If you are running a Python/Flask web developer, you can use your existing skills to build cross platform desktop applications.As the first integration step, I will create a new js file in the public folder. There are many benefits of combining Flask with Electron to build applications, such as: After checking the react project, I will run the following commands to include the electron and electron builder libraries to my project. In this tutorial, we'll use Flask, a popular web framework for building web applications with Python, and Electron to build a desktop application with an Electron GUI. This opens the door for using the modern frontend web technologies, the Node.js and npm modules (the biggest open source repository in the world) and the Python libraries combined to create powerful applications. In the previous tutorial, we've seen how to use Electron and python-shell to create Python apps with Electron GUIs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |