|
1 | | -# Sample Text Editor |
| 1 | +# Qt Designer and Python: Build Your GUI Applications Faster |
2 | 2 |
|
3 | | -A **sample text editor** that shows how to use Qt Designer to create GUI applications. |
| 3 | +This folder provides the code examples for the Real Python tutorial [Qt Designer and Python: Build Your GUI Applications Faster](https://realpython.com/qt-designer-python/) |
4 | 4 |
|
5 | | -## How to Run this Application |
| 5 | +## How to Run This Application |
6 | 6 |
|
7 | | -To run this application, you need to [install `PyQt6`](https://realpython.com/python-pyqt-gui-calculator/#installing-pyqt) on your Python environment. To do that, you can run the following commands in a terminal or command prompt: |
| 7 | +Create and activate a Python virtual environment, then install [PyQt6](https://pypi.org/project/PyQt6/): |
8 | 8 |
|
9 | 9 | ```sh |
10 | 10 | $ python3 -m venv ./venv |
11 | 11 | $ source venv/bin/activate |
12 | | -(venv) $ pip install PyQt6 |
| 12 | +(venv) $ python -m pip install pyqt6 |
13 | 13 | ``` |
14 | 14 |
|
15 | | -Once you have [PyQt](https://www.riverbankcomputing.com/static/Docs/PyQt6/) installed, you can run the application by executing the following command: |
| 15 | +Then launch the sample text editor from the `sample_editor/` directory: |
16 | 16 |
|
17 | 17 | ```sh |
18 | 18 | (venv) $ cd sample_editor/ |
19 | 19 | (venv) $ python app.py |
20 | 20 | ``` |
21 | 21 |
|
22 | | -This command will launch the application, so you'll be able to experiment with it. |
23 | | - |
24 | | -## About the Author |
25 | | - |
26 | | -Leodanis Pozo Ramos – [@lpozo78](https://twitter.com/lpozo78) – lpozor78@gmail.com |
| 22 | +Run `app.py` from inside `sample_editor/`, because the application loads its `.ui` files and icons through relative paths. |
27 | 23 |
|
28 | 24 | ## License |
29 | 25 |
|
30 | | -The set of icons used in this application are part of the [TurkinOS](https://github.com/llamaret/turkinos-icon) icon theme, which is distributed under the [GPL v3.0 license](https://github.com/llamaret/turkinos-icon/blob/master/LICENSE). See `ui/resources/LICENSE` for details. |
| 26 | +The icons used in this application are part of the [TurkinOS](https://github.com/llamaret/turkinos-icon) icon theme, distributed under the [GPL v3.0 license](https://github.com/llamaret/turkinos-icon/blob/master/LICENSE). See `ui/resources/LICENSE` for details. |
0 commit comments