Skip to content

9.x AttributeError: 'Display' object has no attribute 'show' #8499

Closed
@ladyada

Description

@ladyada

CircuitPython version

Adafruit CircuitPython 9.0.0-alpha.1-77-g2c47221cac on 2023-10-21; Adafruit Camera with ESP32S3

Code/REPL

def init_display(self):
        # construct displayio by hand
        displayio.release_displays()        
        self._display_bus = displayio.FourWire(self._spi, command=board.TFT_DC,
                                               chip_select=board.TFT_CS,
                                               reset=board.TFT_RESET,
                                               baudrate=60_000_000)
        self.display = board.DISPLAY
        # init specially since we are going to write directly below
        self.display = displayio.Display(self._display_bus, self._INIT_SEQUENCE,
                                         width=240, height=240, colstart=80,
                                         auto_refresh=False)
        print(dir(self.display))
        self.display.show(self.splash)
        self.display.refresh()

Behavior

AttributeError: 'Display' object has no attribute 'show'

print(dir(self.display))
['__class__', 'auto_refresh', 'brightness', 'bus', 'fill_row', 'height', 'refresh', 'root_group', 'rotation', 'width']

Description

scott mentioned this and there's no existing issue (that is aw) so we can have one here!

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions