Skip to content

Commit 7311690

Browse files
committed
replace .show with .root_group =
1 parent a14d41b commit 7311690

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

adafruit_pyportal/graphics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def qrcode(self, qr_data, *, qr_size=1, x=0, y=0, hide_background=False):
6262
y=y,
6363
)
6464
if hide_background:
65-
self.display.show(self._qr_group)
65+
self.display.root_group = self._qr_group
6666
self._qr_only = hide_background
6767

6868
# pylint: enable=arguments-differ
@@ -71,7 +71,7 @@ def hide_QR(self): # pylint: disable=invalid-name
7171
"""Clear any QR codes that are currently on the screen"""
7272

7373
if self._qr_only:
74-
self.display.show(self.splash)
74+
self.display.root_group = self.splash
7575
else:
7676
try:
7777
self._qr_group.pop()

examples/pyportal_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
pyportal = PyPortal(url=TEXT_URL, status_neopixel=board.NEOPIXEL)
1515

1616
# Set display to show REPL
17-
board.DISPLAY.show(None)
17+
board.DISPLAY.root_group = None
1818

1919
# Go get that data
2020
print("Fetching text from", TEXT_URL)

0 commit comments

Comments
 (0)