mathoudebine / mathoudebine/turing-smart-screen-python
Progress bar width squished in half
Nobody has claimed this yet.
- Dominant language
- Rich Text Format
- Stars
- 2.3k
- Forks
- 412
- Avg merge
- 21h 10m
- Merged PRs (30d)
- 7
Description
Describe the bug
The aspect ratio of progress bar graphs is squashed horizontally.
To Reproduce
Steps to reproduce the behavior:
- Make a graph
- Edit graph width
- To make it obvious, make a graph that's 800x480 at origin point 0
Expected behavior
The progress bars to match the aspect ratio of the theme.
Screenshots / photos of the Turing screen
Environment:
- Turing 5"
- 3.8.0
- EndeavourOS (6.12 LTS kernel)
- Python 3.13
- AMD Ryzen 9 7950X3D, Sapphire 7900XTX Nitro+
Additional context
-Moving the graph along the X axis still works properly, having a correct aspect ratio.
-Because of this bug, it is impossible to place graphs at the far right of the screen, as the X position + width will exceed 800 and crash the program ("Progress bar width exceeds display width"), and will also not display properly on the device:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing an 800x480 graph at origin point 0 on the Turing 5" display and trace the progress-bar graph sizing code. Verify that the bars preserve the theme aspect ratio, remain usable near the right edge of the 800-pixel display, and no longer trigger the display-width error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100