From b6706d74d9042d5d7409184a8c0978e3684551b1 Mon Sep 17 00:00:00 2001 From: RetiredWizard Date: Wed, 1 Nov 2023 23:39:30 -0400 Subject: [PATCH] Replace depreciated .show fixes #37 --- examples/cursorcontrol_buttons_debounced.py | 2 +- examples/cursorcontrol_buttons_text.py | 2 +- examples/cursorcontrol_custom_cursor.py | 2 +- examples/cursorcontrol_simpletest.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/cursorcontrol_buttons_debounced.py b/examples/cursorcontrol_buttons_debounced.py index f1a9459..972eeba 100644 --- a/examples/cursorcontrol_buttons_debounced.py +++ b/examples/cursorcontrol_buttons_debounced.py @@ -118,7 +118,7 @@ splash.append(select_button) splash.append(a_button) splash.append(b_button) -display.show(splash) +display.root_group = splash while True: debounced_cursor.update() diff --git a/examples/cursorcontrol_buttons_text.py b/examples/cursorcontrol_buttons_text.py index 57520c0..7db003b 100644 --- a/examples/cursorcontrol_buttons_text.py +++ b/examples/cursorcontrol_buttons_text.py @@ -115,7 +115,7 @@ cursor = CursorManager(mouse_cursor) # show displayio group -display.show(splash) +display.root_group = splash prev_btn = None while True: diff --git a/examples/cursorcontrol_custom_cursor.py b/examples/cursorcontrol_custom_cursor.py index 83091e2..a66d15d 100644 --- a/examples/cursorcontrol_custom_cursor.py +++ b/examples/cursorcontrol_custom_cursor.py @@ -28,7 +28,7 @@ cursor = CursorManager(mouse_cursor) # show displayio group -display.show(splash) +display.root_group = splash while True: cursor.update() diff --git a/examples/cursorcontrol_simpletest.py b/examples/cursorcontrol_simpletest.py index aa50208..b599eec 100644 --- a/examples/cursorcontrol_simpletest.py +++ b/examples/cursorcontrol_simpletest.py @@ -20,7 +20,7 @@ cursor = CursorManager(mouse_cursor) # show displayio group -display.show(splash) +display.root_group = splash while True: cursor.update()