mathoudebine / mathoudebine/turing-smart-screen-python

Progress bar width squished in half

Open
#668 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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:

  1. Make a graph
  2. Edit graph width
  3. 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

Image

Image

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:

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.