Skip to content

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

Open
realpython-bot wants to merge 1 commit into
masterfrom
maintenance/python-pyqt-gui-calculator-20261107
Open

realpython-bot wants to merge 1 commit 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.
  • [email protected] format --check and [email protected] check pass on the folder.

🤖 Generated with Claude Code

…nd PyQt: Building a GUI Desktop Calculator

Co-Authored-By: Claude Opus 5.5 <[email protected]>

This branch has not been deployed

No deployments
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