55 lines
1.2 KiB
Markdown
55 lines
1.2 KiB
Markdown
# LaTaniere Launcher UI
|
|
|
|
## ⚠️ Requierments
|
|
|
|
You need [Qt6 Community Edition](https://www.qt.io/development/download-qt-installer-oss)
|
|
|
|
You need also [Qt Designer](https://build-system.fman.io/qt-designer-download) for manipulate ui file.
|
|
|
|
## First: create virtualenv
|
|
|
|
`python -m venv .venv`
|
|
|
|
## Second: activate your virtual environment
|
|
|
|
Execute from powershell in project folder:
|
|
|
|
```powershell
|
|
.\.venv\Scripts\Activate.ps1
|
|
```
|
|
|
|
----
|
|
|
|
## Third install packages
|
|
|
|
Ensure your virtual environment is active and execute these commands within it.
|
|
Run this command in the project (from terminal) folder to verify that the Python version matches your virtual environment.
|
|
|
|
`(get-command python.exe).Path`
|
|
|
|
### Installing and Using Pip
|
|
|
|
**Install pip into your virtual environment**
|
|
|
|
Run this command :
|
|
|
|
`py -m pip install --upgrade pip`
|
|
|
|
And check pip is correctly installed:
|
|
|
|
`(get-command pip.exe).Path`
|
|
|
|
**Install project packages**
|
|
|
|
`pip install -r .\requirements.txt`
|
|
|
|
Enjoy.
|
|
|
|
## Generate resource file
|
|
|
|
`rcc -g python .\resources.qrc -o .\src\resources_rc.py`
|
|
|
|
You need to give complete path of rcc.
|
|
Example in my case:
|
|
`H:\Qt\6.10.2\mingw_64\bin\rcc.exe -g python resources.qrc -o .\src\resources.py`
|