Skip to content

Commit

Permalink
Merge pull request #75 from RetiredWizard/main
Browse files Browse the repository at this point in the history
Replace depreciated .show()
  • Loading branch information
dhalbert committed Nov 3, 2023
2 parents 0c72fab + 85615cf commit c3702c3
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/imageload_colorwheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@

group = displayio.Group()
group.append(tile_grid)
display.show(group)
display.root_group = group
while True:
pass
2 changes: 1 addition & 1 deletion examples/imageload_from_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

group = displayio.Group(scale=1)
group.append(tile_grid)
board.DISPLAY.show(group)
board.DISPLAY.root_group = group

response.close()

Expand Down
2 changes: 1 addition & 1 deletion examples/imageload_magtag_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
group.append(tile_grid)

# show the group and refresh
display.show(group)
display.root_group = group
display.refresh()

while True:
Expand Down
2 changes: 1 addition & 1 deletion examples/imageload_netpbm.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

# Make the display context
splash = displayio.Group()
display.show(splash)
display.root_group = splash
# image = "images/netpbm_p1_mono_ascii.pbm"
# image = "images/netpbm_p2_ascii.pgm"
# image = "images/netpbm_p3_rgb_ascii.ppm"
Expand Down
2 changes: 1 addition & 1 deletion examples/imageload_png_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
group.append(tile_grid)

# show our group
board.DISPLAY.show(group)
board.DISPLAY.root_group = group

# loop forever so it stays on the display
while True:
Expand Down
2 changes: 1 addition & 1 deletion examples/imageload_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

group = displayio.Group()
group.append(tile_grid)
board.DISPLAY.show(group)
board.DISPLAY.root_group = group

while True:
pass
2 changes: 1 addition & 1 deletion examples/imageload_tilegrid_inflator_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

group = displayio.Group()
group.append(tile_grid)
board.DISPLAY.show(group)
board.DISPLAY.root_group = group

while True:
pass

0 comments on commit c3702c3

Please sign in to comment.