Skip to content

Commit b6706d7

Browse files
committed
Replace depreciated .show fixes #37
1 parent 97983d7 commit b6706d7

4 files changed

+4
-4
lines changed

examples/cursorcontrol_buttons_debounced.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
splash.append(select_button)
119119
splash.append(a_button)
120120
splash.append(b_button)
121-
display.show(splash)
121+
display.root_group = splash
122122

123123
while True:
124124
debounced_cursor.update()

examples/cursorcontrol_buttons_text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
cursor = CursorManager(mouse_cursor)
116116

117117
# show displayio group
118-
display.show(splash)
118+
display.root_group = splash
119119

120120
prev_btn = None
121121
while True:

examples/cursorcontrol_custom_cursor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
cursor = CursorManager(mouse_cursor)
2929

3030
# show displayio group
31-
display.show(splash)
31+
display.root_group = splash
3232

3333
while True:
3434
cursor.update()

examples/cursorcontrol_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
cursor = CursorManager(mouse_cursor)
2121

2222
# show displayio group
23-
display.show(splash)
23+
display.root_group = splash
2424

2525
while True:
2626
cursor.update()

0 commit comments

Comments
 (0)