Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyqt-calculator-tutorial/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Python and PyQt: Building a GUI Desktop Calculator

This folder provides the code examples for the article [Python and PyQt: Building a GUI Desktop Calculator](https://realpython.com/python-and-pyqt-building-a-gui-desktop-calculator/).
This folder provides the code examples for the article [Python and PyQt: Building a GUI Desktop Calculator](https://realpython.com/python-pyqt-gui-calculator/).

## Folder Content

Expand Down
2 changes: 1 addition & 1 deletion pyqt-calculator-tutorial/examples/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def _createMenu(self):

def _createToolBar(self):
tools = QToolBar()
self.addToolBar(tools)
tools.addAction("Exit", self.close)
self.addToolBar(tools)

def _createStatusBar(self):
status = QStatusBar()
Expand Down
2 changes: 1 addition & 1 deletion pyqt-calculator-tutorial/examples/signal_slots.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def greet():
if msgLabel.text():
msgLabel.setText("")
else:
msgLabel.setText("Hello World!")
msgLabel.setText("Hello, World!")


app = QApplication([])
Expand Down
4 changes: 2 additions & 2 deletions pyqt-calculator-tutorial/pycalc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ PyCalc is intended to be a demonstrative example of how to build a Python + PyQt

## Requirements

For PyCalc to work, you need to have [Python](https://www.python.org) >= 3.6.1. Then you need to install the PyQt6 library. You can do this by using `pip` in a Python virtual environment:
For PyCalc to work, you need to have [Python](https://www.python.org) 3.10 or later. Then you need to install the PyQt6 library. You can do this by using `pip` in a Python virtual environment:

```console
$ python -m venv venv
$ source venv/bin/activate
$ python -m pip install pyqt6
$ python -m pip install pyqt6==6.12.0
```

After these commands have finished, you can run PyCalc as described in the next section.
Expand Down
2 changes: 1 addition & 1 deletion pyqt-calculator-tutorial/pycalc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
PyQt6>=6.3.1
PyQt6==6.12.0
Loading