Skip to content

Commit

Permalink
Merge pull request #40 from prcutler/root-group-fix
Browse files Browse the repository at this point in the history
Update root_group for CP 9 compatibility
  • Loading branch information
dhalbert authored Nov 3, 2023
2 parents 662e97e + bd65ce1 commit 978e333
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
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

0 comments on commit 978e333

Please sign in to comment.