https://github.com/trolobezka/pycms1
Desktop app built with PyQt6 for ČMS1 calculations and protocol generation with pdfLaTeX
https://github.com/trolobezka/pycms1
calculations cvut desktop-app latex mechanical-engineering pyqt6 python
Last synced: 14 days ago
JSON representation
Desktop app built with PyQt6 for ČMS1 calculations and protocol generation with pdfLaTeX
- Host: GitHub
- URL: https://github.com/trolobezka/pycms1
- Owner: Trolobezka
- License: gpl-3.0
- Created: 2022-10-02T22:31:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-10T00:00:58.000Z (over 3 years ago)
- Last Synced: 2025-01-24T21:27:24.893Z (over 1 year ago)
- Topics: calculations, cvut, desktop-app, latex, mechanical-engineering, pyqt6, python
- Language: Python
- Homepage:
- Size: 43 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PyČMS1
[](https://github.com/psf/black)

[Video showcasing older version of the program.](https://drive.google.com/file/d/1LedgCMcjE8zndWmCLM0t9yWBso8Vbrq2/view?usp=sharing)
## Basic information
* Python: 3.10
* Formatting: [Black](https://github.com/psf/black)
* Type hints: [Yes](https://docs.python.org/3/library/typing.html) with [Pylance](https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance)
* PDF creation: [pdfLaTeX](https://tex.stackexchange.com/questions/49569)
## Install dependencies
[PyQt6](https://doc.qt.io/qtforpython/)
```bash
pip install --upgrade pip
pip install PyQt6
```
If you don't have pip installed, follow [this](https://pip.pypa.io/en/stable/installation).
## Run program
Navigate to the root folder of `pycms1` project and run:
```bash
python main.py
```
## Create executable (optional)
[PyInstaller](https://pyinstaller.org/en/stable/)
```bash
pip install --upgrade pip
pip install pyinstaller
pyinstaller --onefile --windowed --name cms1_u1 main.py
```
## Note about input fields
There is no user input validation, so inserting text into numerical field can result in error.
## Note for playing with PDFs in QWebEngineView
Correctly installing [WebEngine](https://riverbankcomputing.com/software/pyqtwebengine/download) for PyQt6 can be challenging. If you have problems, try the following:
1. Uninstall everything that could interfere with WebEngine installation:
```bash
pip uninstall --yes PyQt-builder qtconsole QtPy PyQt5 PyQt5-Qt5 PyQt5-sip PyQt6 PyQt6-Qt6 PyQt6-sip PyQt6-WebEngine PyQt6-WebEngine-Qt6 PyQtWebEngine PyQtWebEngine-qt5 PySide PySide2
```
2. Install only needed modules:
```bash
pip install --no-cache-dir PyQt6 PyQt6-WebEngine
```