Skip to content

Commit c59756a

Browse files
committed
Replace depreciated .show in examples
1 parent ab3c9cf commit c59756a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/bitmap_font_displayio_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
group.append(tile_grid)
7272

7373
# Add the Group to the Display
74-
display.show(group)
74+
display.root_group = group
7575

7676
while True:
7777
pass

examples/bitmap_font_label_forkawesome.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
text_area.anchored_position = (display.width // 2, display.height // 2)
3434

3535
# Show it
36-
display.show(text_area)
36+
display.root_group = text_area
3737

3838
while True:
3939
pass

examples/bitmap_font_label_magtag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
text_area.y = 20
4646

4747
# Show it and refresh
48-
display.show(text_area)
48+
display.root_group = text_area
4949
display.refresh()
5050
while True:
5151
pass

examples/bitmap_font_label_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
text_area.y = 20
3333

3434
# Show it
35-
display.show(text_area)
35+
display.root_group = text_area
3636

3737
while True:
3838
pass

0 commit comments

Comments
 (0)