
Python GUI from scratch, step-by-step.
Executable file rendering html local files and browsing the web.
π Table of Contents
This project aims to create a Web broswer able to load embedded html files (with assets, imgs, css) and navigate the internet, all in one executable .exe file.
Software | Version | Purpose |
---|---|---|
Python | 3.8.2 | Interpretate and run the scripts |
Qt | 6 | PyQt is a Python binding of the cross-platform GUI toolkit Qt, implemented as a Python plug-in. |
Tkinter | Built in Python | Tkinter is a Python binding to the Tk GUI toolkit |
Eel | Create excutable (.exe) |
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
Next steps will help you to configure your system be able to run, test and create executable for Python software.
Python is an interpreted, interactive, object-oriented programming language.
- Go to Python Download
- Scroll to Files and over the Python installer.
- After you download Python installer, open the file.
- Follow the installation instructions.
- Open the command line (CMD) and execute:
python --version
- If the installation was successful you will see this:
Python 3.10.0
PyQt is a set of Python bindings for The Qt Company's Qt application framework and runs on all platforms supported by Qt including Windows, macOS, Linux, iOS and Android.
It has a commercial version too: Qt commercial version
Install PyQt6 from pip, open the command line (CMD) and execute:
pip install PyQt6
PyQt-WebEngine is a set of Python bindings for The Qt Company's Qt WebEngine libraries. It is available for PyQt6 and PyQt6.
Install PyQt6-WebEngine from pip, open the command line (CMD) and execute:
pip install PyQt6-WebEngine
Eel is a little Python library for making simple Electron-like offline HTML/JS GUI apps, with full access to Python capabilities and libraries.
Install Eel from pip, open the command line (CMD) and execute:
pip install Eel
Note: Another way to install all with pip is:
pip install PyQt6 PyQt6-WebEngine Eel
- 01.Window
- 01.Qt-window.py - Create a simple Qt window
- 02.Qt-window.py - Adding status bar and name
- 03.Qt-window.py - Adding resize and icon
- 04.Qt-window.py - Adding navigation bar url
- 05.Qt-window.py - Adding navigation bar buttons
- 01.Tk-window.py - Create a simple Tkinter window
- 02.Tk-window.py - Adding status bar and name
- 03.Tk-window.py - Adding resize and icon
...
- XX.Executable - TODO: Web broswer .exe
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork this Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'feat: Add some AmazingFeature'
) please use ISO conventional commits: feat for features, fix for bug fixes, docs for documentation, chore for boring tasks no production code change. - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Jose Luis Paternina - PaterBytes - josepaternina@gmail.com
Project Link: https://github.com/paterbytes/gui-python
(Back to top)
Β· Β· Β·