Skip to content

Commit 094adca

Browse files
committed
Replace depreciated .show
1 parent 08fd923 commit 094adca

8 files changed

+8
-8
lines changed

examples/progressbar_accelerometer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
]
139139
display = board.DISPLAY
140140
main_group = displayio.Group()
141-
display.show(main_group)
141+
display.root_group = main_group
142142

143143
color_bitmap = displayio.Bitmap(display.width, display.height, 1)
144144
color_palette = displayio.Palette(1)

examples/progressbar_combined.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-
board.DISPLAY.show(splash)
18+
board.DISPLAY.root_group = splash
1919

2020
# set horizontal progress bar width and height relative to board's display
2121
h_width = board.DISPLAY.width - 40

examples/progressbar_displayio_blinka.py

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

2424
display = PyGameDisplay(width=320, height=240, auto_refresh=False)
2525
splash = displayio.Group()
26-
display.show(splash)
26+
display.root_group = splash
2727

2828
color_bitmap = displayio.Bitmap(display.width, display.height, 1)
2929
color_palette = displayio.Palette(1)

examples/progressbar_displayio_blinka_color_scale.py

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

2525
display = PyGameDisplay(width=320, height=240, auto_refresh=False)
2626
splash = displayio.Group()
27-
display.show(splash)
27+
display.root_group = splash
2828

2929
# Setting up the grayscale values, You could use a different scale, and add more entries
3030
# to have detailed transitions

examples/progressbar_magtag_simpletest.py

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

3030
# Make the display context
3131
splash = displayio.Group()
32-
display.show(splash)
32+
display.root_group = splash
3333

3434
# set progress bar width and height relative to board's display
3535
BAR_WIDTH = display.width - 40

examples/progressbar_matrixportal.py

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

6565
print("Adding display group")
6666
group = displayio.Group() # Create a group to hold all our labels
67-
display.show(group)
67+
display.root_group = group
6868

6969
print("Creating progress bars and adding to group")
7070

examples/progressbar_simpletest.py

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

1212
# Make the display context
1313
splash = displayio.Group()
14-
board.DISPLAY.show(splash)
14+
board.DISPLAY.root_group = splash
1515

1616
# set progress bar width and height relative to board's display
1717
width = board.DISPLAY.width - 40

examples/progressbar_vertical_simpletest.py

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

1212
# Make the display context
1313
splash = displayio.Group()
14-
board.DISPLAY.show(splash)
14+
board.DISPLAY.root_group = splash
1515

1616
# set progress bar width and height relative to board's display
1717
width = 10

0 commit comments

Comments
 (0)