From a23553e9084609d19c81101b634c1fc07a4f87e1 Mon Sep 17 00:00:00 2001 From: medienverbinder Date: Thu, 13 Nov 2025 12:11:02 +0100 Subject: [PATCH] .show() deprecated --- menu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/menu.py b/menu.py index 9c1b513..d6e5f21 100644 --- a/menu.py +++ b/menu.py @@ -278,11 +278,11 @@ def item(self) -> AbstractMenuItem: def show(self): """Show this menu on the display.""" - self.display.show(self.display_group) + self.display.root_group = self.display_group def hide(self): """Show CircuitPython REPL again.""" - self.display.show(None) # type: ignore[arg-type] + self.display.root_group = None # type: ignore[arg-type] def serialize(self) -> dict[str, Any]: """Get a dict of all item values in this menu.