Skip to content

tab_layout returns AttributeError for width when using HSTX display #103

@gh3262

Description

@gh3262

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.

Image

Not sure if this will break boards with built in display.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy