2022-09-20 16:27:14 +08:00
![Py2exe-GUI Logo ](docs/source/images/py2exe-gui_logo_big.png )
2022-09-03 19:41:26 +08:00
2022-12-02 17:26:02 +08:00
< h2 align = "center" > Easy-to-use Python GUI packaging tool< / h2 >
2022-09-06 10:18:17 +08:00
2022-09-20 16:27:14 +08:00
< p align = "center" >
< img alt = "GitHub Repo stars" src = "https://img.shields.io/github/stars/muziing/Py2exe-GUI" >
< img alt = "Python Version" src = "https://img.shields.io/pypi/pyversions/py2exe-gui" >
< a href = "https://pypi.org/project/py2exe-gui/" > < img alt = "PyPI Version" src = "https://img.shields.io/pypi/v/py2exe-gui" > < / a >
2022-12-07 09:41:21 +08:00
< a href = "https://doc.qt.io/qtforpython/index.html" > < img alt = "PySide Version" src = "https://img.shields.io/badge/PySide-6.4-blue" > < / a >
2022-09-20 16:27:14 +08:00
< a href = "https://github.com/psf/black" > < img alt = "Code style: black" src = "https://img.shields.io/badge/code%20style-black-000000.svg" > < / a >
2022-12-02 17:26:02 +08:00
< a href = "http://mypy-lang.org/" > < img alt = "Checked with mypy" src = "https://img.shields.io/badge/mypy-checked-blue" > < / a >
2022-09-20 16:27:14 +08:00
< / p >
2022-09-05 21:28:57 +08:00
2022-12-02 17:26:02 +08:00
< p align = "center" >
English | < a href = "README_zh.md" > 简体中文< / a >
< / p >
2022-09-15 11:06:43 +08:00
2022-12-02 17:26:02 +08:00
## Introduction
2022-09-05 21:28:57 +08:00
2022-12-10 21:04:42 +08:00
Py2exe-GUI is an assist tool based on [PySide6 ](https://doc.qt.io/qtforpython/index.html ), designed to provide a complete yet easy-to-use GUI for [PyInstaller ](https://pyinstaller.org/ ).
2022-09-09 10:11:14 +08:00
2022-12-02 17:26:02 +08:00
![Screenshot of the interface ](docs/source/images/Py2exe-GUI_v0.1.0_screenshot.png )
2022-09-03 19:41:26 +08:00
2022-12-02 17:26:02 +08:00
It has the following features:
2022-09-03 19:41:26 +08:00
2022-12-02 17:26:02 +08:00
- All options of PyInstaller are supported.
2022-12-10 21:04:42 +08:00
- Call any local Python interpreter with the corresponding environment. No need for repeat installations.(Not realized yet)
- Cross-platform, supports Windows, Linux and macOS.
2022-09-15 11:06:43 +08:00
2022-12-02 17:26:02 +08:00
## How to use
2022-10-13 10:54:35 +08:00
2022-12-02 17:26:02 +08:00
> Note: Py2exe-GUI is still in the early development stage, the way of using it may change frequently, so please check this instruction frequently.
2022-09-15 11:06:43 +08:00
2022-12-02 17:26:02 +08:00
### Option A: Install with `pip`
First, install PyInstaller in the Python interpreter environment which to be packaged:
2022-09-20 16:27:14 +08:00
```shell
2022-12-07 09:41:21 +08:00
pip install pyinstaller==5.7.0
2022-09-20 16:27:14 +08:00
```
2022-12-02 17:26:02 +08:00
Then install Py2exe-GUI with `pip` :
2022-09-15 11:06:43 +08:00
```shell
pip install py2exe-gui
```
2022-12-02 17:26:02 +08:00
Run:
2022-09-15 11:06:43 +08:00
```shell
python -m py2exe_gui
```
2022-12-02 17:26:02 +08:00
### Option B: Run through source code
2022-09-03 19:41:26 +08:00
2022-12-02 17:26:02 +08:00
Clone repo:
2022-09-03 19:41:26 +08:00
2022-10-13 10:54:35 +08:00
```shell
git clone https://github.com/muziing/Py2exe-GUI.git
```
2022-12-02 17:26:02 +08:00
Install [Poetry ](https://python-poetry.org/ ) and create a virtual environment:
```shell
poetry init
```
Install the dependencies:
2022-10-13 10:54:35 +08:00
```shell
poetry install
```
2022-09-03 19:41:26 +08:00
2022-12-02 17:26:02 +08:00
Run [Py2exe-GUI.py ](src/Py2exe-GUI.py ):
2022-10-13 10:54:35 +08:00
```shell
cd src
python Py2exe-GUI.py
```
2022-12-02 17:26:02 +08:00
## Structure
2022-10-13 10:54:35 +08:00
2022-12-10 21:04:42 +08:00
All source code is in the [src/py2exe_gui ](src/py2exe_gui ) directory.
2022-12-02 17:26:02 +08:00
- [Constants ](src/py2exe_gui/Constants )
- [Core ](src/py2exe_gui/Core )
- [Resources ](src/py2exe_gui/Resources )
- [Widgets ](src/py2exe_gui/Widgets )
## License
2022-12-07 09:41:21 +08:00
![GPLv3 ](docs/source/images/gplv3-127x51.png )
2022-12-02 17:26:02 +08:00
```text
Py2exe-GUI
Copyright (C) 2022 muzing
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see < https: / / www . gnu . org / licenses / > .
```