ConvertUiToPy is a simple GUI application designed to convert .ui files created in Qt Designer to Python .py files using pyuic5. The application is built using PyQt5 and follows the SOLID principles for maintainable and scalable code.
- Select a
.uifile via a file dialog. - Specify the output
.pyfile via a save file dialog. - Convert
.uito.pywith a single click. - Dark theme for a modern look.
- Error handling with logging and notifications.
project_root/
│
├── main.py
├── gui_handler.py
├── file_handler.py
├── error_handler.py
├── config.json
└── ui/
└── main.ui
Unpack the zip file.
Install the required dependencies using pip:
pip install -r requirements.txt
Python main.py
Use the GUI to select a .ui file and specify the output .py file.
Click "Execute" to perform the conversion.
A notification will confirm if the conversion was successful.
Errors are logged to the Logs directory and displayed in the console.
This project is licensed under the MIT License. See the LICENSE file for details.