adafruit / adafruit/Adafruit_CircuitPython_DisplayIO_Layout
tab_layout returns AttributeError for width when using HSTX display
- Dominant language
- Python
- Stars
- 13
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
Using Feather RP2350 with an HSTX display running the Tab Layout Simple test with display is set up using:
`if hasattr(supervisor. Runtime, "display") and supervisor.runtime.display is not None:
# use the built-in HSTX display for Metro RP2350
display = supervisor.runtime.display`
Getting error:
`File "/lib/adafruit_displayio_layout/layouts/tab_layout.py", line 203, in add_content
File "/lib/adafruit_displayio_layout/layouts/tab_layout.py", line 152, in _draw_tabs
AttributeError: 'NoneType' object has no attribute 'width'`
I was able to get it to work by editing the file - see attached screenshot.
Not sure if this will break boards with built in display.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.