Skip to content

Button has a Group, but is not a subclass of Group #12

Closed
@dhalbert

Description

@dhalbert

JMK expected a Button to act like a Label, in that it would be a Group that you would add to a Group. But Button is not a subclass of Group: It has a Group (.group), but it is not itself one.

There is a mirrored page in Learn Guides with an example that assumes a Button is a Group:
https://learn.adafruit.com/pyportal-calculator-using-the-displayio-ui-elements/ui-quickstart#button-3-15
https://learn.adafruit.com/circuitpython-display-support-using-displayio/ui-quickstart

Is it possible for it to be Group? If not, the examples should be fixed, and the documentation here should explain how to use .group.

Tagging @makermelissa @tannewt @ladyada

Metadata

Metadata

Assignees

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