Skip to content

Sync pyqt-calculator-tutorial with the updated tutorial - #937

Merged
realpython-bot merged 2 commits into
masterfrom
maintenance/python-pyqt-gui-calculator-20261107
Dec 1, 2026
Merged

realpython-bot merged 2 commits into
masterfrom
maintenance/python-pyqt-gui-calculator-20261107

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Syncs pyqt-calculator-tutorial/ with the maintenance update of Python and PyQt: Building a GUI Desktop Calculator.

What changed

  • pycalc/requirements.txt: PyQt6>=6.3.1 becomes PyQt6==6.12.0, matching the tutorial's updated dependencies field.
  • pycalc/README.md: the Python floor moves from 3.6.1 to 3.10 (PyQt6 6.12.0 declares requires_python >=3.10), and the install command is pinned to pyqt6==6.12.0.
  • README.md: the tutorial link now points to the article's current slug, /python-pyqt-gui-calculator/.
  • examples/main_window.py: the toolbar's Exit action is added before the toolbar goes onto the window, matching the order in the tutorial's listing.
  • examples/signal_slots.py: the greeting reads "Hello, World!", matching the tutorial.

Links

Verification

  • Fresh venv on Python 3.15.1 with -r pycalc/requirements.txt (PyQt6 6.12.0).
  • Ran every script in examples/ plus pycalc/pycalc.py offscreen (QT_QPA_PLATFORM=offscreen, event loop quit after 1.5 s, -W error::DeprecationWarning). All exited cleanly.
  • evaluateExpression("7*(2+3)") returns 35, and evaluateExpression("7/") returns ERROR.
  • ruff@0.14.1 format --check and ruff@0.14.1 check pass on the folder.

🤖 Generated with Claude Code

realpython-bot and others added 2 commits November 7, 2026 06:09
…nd PyQt: Building a GUI Desktop Calculator

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@realpython-bot
realpython-bot merged commit 32a3b2f into master Dec 1, 2026
1 check passed
@realpython-bot
realpython-bot deleted the maintenance/python-pyqt-gui-calculator-20261107 branch December 1, 2026 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant