Skip to content

Commit 978e333

Browse files
authored
Merge pull request #40 from prcutler/root-group-fix
Update root_group for CP 9 compatibility
2 parents 662e97e + bd65ce1 commit 978e333

4 files changed

+4
-4
lines changed

examples/display_button_color_properties.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
# Make the display context
4343
splash = displayio.Group()
44-
display.show(splash)
44+
display.root_group = splash
4545

4646
# Make the button
4747
button = Button(

examples/display_button_customfont.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
# Make the display context
4444
splash = displayio.Group()
45-
display.show(splash)
45+
display.root_group = splash
4646
BUTTON_WIDTH = 80
4747
BUTTON_HEIGHT = 40
4848
BUTTON_MARGIN = 20

examples/display_button_simpletest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
# Make the display context
4141
splash = displayio.Group()
42-
display.show(splash)
42+
display.root_group = splash
4343

4444
# Make the button
4545
button = Button(

examples/display_button_spritebutton_simpletest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
# Make the display context
2222
main_group = displayio.Group()
23-
board.DISPLAY.show(main_group)
23+
board.DISPLAY.root_group = main_group
2424

2525
BUTTON_WIDTH = 10 * 16
2626
BUTTON_HEIGHT = 3 * 16

0 commit comments

Comments
 (0)