Skip to content

Normalize colors, fix UI input, bump Python to 3.10#47

Merged
ulfarsson merged 2 commits intomasterfrom
feb-2026-fixes
Feb 8, 2026
Merged

Normalize colors, fix UI input, bump Python to 3.10#47
ulfarsson merged 2 commits intomasterfrom
feb-2026-fixes

Conversation

@ulfarsson
Copy link
Member

Update UI components and project metadata:

  • Bump python_requires to >=3.10 and remove 3.8/3.9 classifiers in setup.py.
  • Stop ignoring .python-version in .gitignore (and remove the file) to track pyenv version.
  • Normalize color usage by scaling Color values to 0..1 and introduce TPlot._BLACK_COLOR; use it when drawing points and grid.
  • Fix grid drawing ranges to include boundary lines (range + 1).
  • Improve paste handling in TopMenu by using pyglet.key constants for the paste key and accelerator modifier.
  • Adjust Text widget sizing: store font size, center content vertically, and tweak layout y/height calculations.
  • Scale Button and ToggleButton colors to normalized RGB.

These changes improve visual consistency, correct rendering and input behavior, and update supported Python versions.

Update UI components and project metadata:

- Bump python_requires to >=3.10 and remove 3.8/3.9 classifiers in setup.py.
- Stop ignoring .python-version in .gitignore (and remove the file) to track pyenv version.
- Normalize color usage by scaling Color values to 0..1 and introduce TPlot._BLACK_COLOR; use it when drawing points and grid.
- Fix grid drawing ranges to include boundary lines (range + 1).
- Improve paste handling in TopMenu by using pyglet.key constants for the paste key and accelerator modifier.
- Adjust Text widget sizing: store font size, center content vertically, and tweak layout y/height calculations.
- Scale Button and ToggleButton colors to normalized RGB.

These changes improve visual consistency, correct rendering and input behavior, and update supported Python versions.
Update GitHub Actions and tox configuration to remove older interpreters. Removed Python 3.8 and 3.9 entries (and tox envs py38/py39) and removed PyPy 3.8/3.9 entries; retained CPython 3.10–3.13 and PyPy 3.10. Adjusted tox envlist and testenv basepython mappings to match the new test matrix (.github/workflows/test.yml and tox.ini).
@ulfarsson ulfarsson merged commit 87cb280 into master Feb 8, 2026
24 checks passed
@ulfarsson ulfarsson deleted the feb-2026-fixes branch February 8, 2026 14:21
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