Repository: adafruit/Adafruit_CircuitPython_Display_Button (language: python)

Issue:
Convert `.show()` to `.root_group =` for CircuitPython 9



Discussion / hints:

Fix patch:
diff --git a/examples/display_button_color_properties.py b/examples/display_button_color_properties.py
index 0ec1253..d8bf92f 100644
--- a/examples/display_button_color_properties.py
+++ b/examples/display_button_color_properties.py
@@ -41,7 +41,7 @@
 
 # Make the display context
 splash = displayio.Group()
-display.show(splash)
+display.root_group = splash
 
 # Make the button
 button = Button(
diff --git a/examples/display_button_customfont.py b/examples/display_button_customfont.py
index 38ea90d..189af96 100644
--- a/examples/display_button_customfont.py
+++ b/examples/display_button_customfont.py
@@ -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


Test patch:
diff --git a/examples/display_button_simpletest.py b/examples/display_button_simpletest.py
index 6b975a3..fa388f3 100644
--- a/examples/display_button_simpletest.py
+++ b/examples/display_button_simpletest.py
@@ -39,7 +39,7 @@
 
 # Make the display context
 splash = displayio.Group()
-display.show(splash)
+display.root_group = splash
 
 # Make the button
 button = Button(
diff --git a/examples/display_button_spritebutton_simpletest.py b/examples/display_button_spritebutton_simpletest.py
index 8f78c48..838ed30 100644
--- a/examples/display_button_spritebutton_simpletest.py
+++ b/examples/display_button_spritebutton_simpletest.py
@@ -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