Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update root_group for CP 9 compatibility #40

Merged
merged 1 commit into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/display_button_color_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

# Make the display context
splash = displayio.Group()
display.show(splash)
display.root_group = splash

# Make the button
button = Button(
Expand Down
2 changes: 1 addition & 1 deletion examples/display_button_customfont.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

# Make the display context
splash = displayio.Group()
display.show(splash)
display.root_group = splash
BUTTON_WIDTH = 80
BUTTON_HEIGHT = 40
BUTTON_MARGIN = 20
Expand Down
2 changes: 1 addition & 1 deletion examples/display_button_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

# Make the display context
splash = displayio.Group()
display.show(splash)
display.root_group = splash

# Make the button
button = Button(
Expand Down
2 changes: 1 addition & 1 deletion examples/display_button_spritebutton_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

# Make the display context
main_group = displayio.Group()
board.DISPLAY.show(main_group)
board.DISPLAY.root_group = main_group

BUTTON_WIDTH = 10 * 16
BUTTON_HEIGHT = 3 * 16
Expand Down