Skip to content

Commit c3702c3

Browse files
authored
Merge pull request #75 from RetiredWizard/main
Replace depreciated .show()
2 parents 0c72fab + 85615cf commit c3702c3

7 files changed

+7
-7
lines changed

examples/imageload_colorwheel.py

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

1616
group = displayio.Group()
1717
group.append(tile_grid)
18-
display.show(group)
18+
display.root_group = group
1919
while True:
2020
pass

examples/imageload_from_web.py

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

4242
group = displayio.Group(scale=1)
4343
group.append(tile_grid)
44-
board.DISPLAY.show(group)
44+
board.DISPLAY.root_group = group
4545

4646
response.close()
4747

examples/imageload_magtag_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
group.append(tile_grid)
2828

2929
# show the group and refresh
30-
display.show(group)
30+
display.root_group = group
3131
display.refresh()
3232

3333
while True:

examples/imageload_netpbm.py

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

2929
# Make the display context
3030
splash = displayio.Group()
31-
display.show(splash)
31+
display.root_group = splash
3232
# image = "images/netpbm_p1_mono_ascii.pbm"
3333
# image = "images/netpbm_p2_ascii.pgm"
3434
# image = "images/netpbm_p3_rgb_ascii.ppm"

examples/imageload_png_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
group.append(tile_grid)
3737

3838
# show our group
39-
board.DISPLAY.show(group)
39+
board.DISPLAY.root_group = group
4040

4141
# loop forever so it stays on the display
4242
while True:

examples/imageload_simpletest.py

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

1212
group = displayio.Group()
1313
group.append(tile_grid)
14-
board.DISPLAY.show(group)
14+
board.DISPLAY.root_group = group
1515

1616
while True:
1717
pass

examples/imageload_tilegrid_inflator_simpletest.py

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

1212
group = displayio.Group()
1313
group.append(tile_grid)
14-
board.DISPLAY.show(group)
14+
board.DISPLAY.root_group = group
1515

1616
while True:
1717
pass

0 commit comments

Comments
 (0)