Skip to content

Commit 2b5fb16

Browse files
authored
Merge pull request #146 from realpython/python-menus-toolbars
Python-menus-toolbars-sample-app
2 parents 74778f3 + 79e0c86 commit 2b5fb16

File tree

14 files changed

+1725
-0
lines changed

14 files changed

+1725
-0
lines changed

python-menus-toolbars/MIT.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2020 Leodanis Pozo Ramos
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

python-menus-toolbars/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Sample PyQt Application
2+
3+
A sample GUI application that shows how to create and use menus, toolbars, and status bars using Python and PyQt.
4+
5+
## How to Run this Application
6+
7+
To run this application, you need to [install `PyQt5`](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:
8+
9+
```sh
10+
$ pip3 install PyQt5
11+
```
12+
13+
Once you have [PyQt](https://www.riverbankcomputing.com/static/Docs/PyQt5/) installed, you can run the application by executing the following command:
14+
15+
```sh
16+
$ python3 sample-app.py
17+
```
18+
19+
This command will launch the application, so you'll be able to experiment with it.
20+
21+
## About the Author
22+
23+
Leodanis Pozo Ramos – [@lpozo78](https://twitter.com/lpozo78)[email protected]
24+
25+
## License
26+
27+
- This application is distributed under the MIT license. See `LICENSE` for details.
28+
29+
- 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 `resources/LICENSE` for details.

python-menus-toolbars/qrc_resources.py

Lines changed: 645 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE RCC><RCC version="1.0">
2+
<qresource>
3+
<file alias="file-new.svg">resources/file-new.svg</file>
4+
<file alias="file-open.svg">resources/file-open.svg</file>
5+
<file alias="file-save.svg">resources/file-save.svg</file>
6+
<file alias="file-exit.svg">resources/file-exit.svg</file>
7+
<file alias="edit-copy.svg">resources/edit-copy.svg</file>
8+
<file alias="edit-cut.svg">resources/edit-cut.svg</file>
9+
<file alias="edit-paste.svg">resources/edit-paste.svg</file>
10+
<file alias="help-content.svg">resources/help-content.svg</file>
11+
</qresource>
12+
</RCC>

python-menus-toolbars/resources/LICENSE.txt

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 13 additions & 0 deletions
Loading
Lines changed: 13 additions & 0 deletions
Loading
Lines changed: 13 additions & 0 deletions
Loading
Lines changed: 13 additions & 0 deletions
Loading
Lines changed: 13 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)