Skip to content

Commit 2f2af5d

Browse files
committed
Replace depreciated .show
1 parent 3cdf594 commit 2f2af5d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/gizmo_eink_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
display_group.append(sprite)
2727

2828
# Place the display group on the screen
29-
display.show(display_group)
29+
display.root_group = display_group
3030

3131
# Refresh the display to have it actually show the image
3232
# NOTE: Do not refresh eInk displays sooner than 180 seconds

examples/gizmo_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
group.append(tile_grid)
3131

3232
# Add the Group to the Display
33-
display.show(group)
33+
display.root_group = group
3434

3535
# Draw pixels
3636
while True:

examples/gizmo_tft_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
# Make the display context
1717
splash = displayio.Group()
18-
display.show(splash)
18+
display.root_group = splash
1919

2020
color_bitmap = displayio.Bitmap(240, 240, 1)
2121
color_palette = displayio.Palette(1)

examples/gizmo_tft_thermometer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def c_to_f(c_val):
7979
group.append(text_group)
8080

8181
# Add the main Group to the Display
82-
display.show(group)
82+
display.root_group = group
8383

8484
# Loop forever
8585
while True:

0 commit comments

Comments
 (0)