Skip to content

Replace depreciated .show #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/progressbar_accelerometer.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
]
display = board.DISPLAY
main_group = displayio.Group()
display.show(main_group)
display.root_group = main_group

color_bitmap = displayio.Bitmap(display.width, display.height, 1)
color_palette = displayio.Palette(1)
Expand Down
2 changes: 1 addition & 1 deletion examples/progressbar_combined.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# Make the display context
splash = displayio.Group()
board.DISPLAY.show(splash)
board.DISPLAY.root_group = splash

# set horizontal progress bar width and height relative to board's display
h_width = board.DISPLAY.width - 40
Expand Down
2 changes: 1 addition & 1 deletion examples/progressbar_displayio_blinka.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

display = PyGameDisplay(width=320, height=240, auto_refresh=False)
splash = displayio.Group()
display.show(splash)
display.root_group = splash

color_bitmap = displayio.Bitmap(display.width, display.height, 1)
color_palette = displayio.Palette(1)
Expand Down
2 changes: 1 addition & 1 deletion examples/progressbar_displayio_blinka_color_scale.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

display = PyGameDisplay(width=320, height=240, auto_refresh=False)
splash = displayio.Group()
display.show(splash)
display.root_group = splash

# Setting up the grayscale values, You could use a different scale, and add more entries
# to have detailed transitions
Expand Down
2 changes: 1 addition & 1 deletion examples/progressbar_magtag_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

# Make the display context
splash = displayio.Group()
display.show(splash)
display.root_group = splash

# set progress bar width and height relative to board's display
BAR_WIDTH = display.width - 40
Expand Down
2 changes: 1 addition & 1 deletion examples/progressbar_matrixportal.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

print("Adding display group")
group = displayio.Group() # Create a group to hold all our labels
display.show(group)
display.root_group = group

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

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

# Make the display context
splash = displayio.Group()
board.DISPLAY.show(splash)
board.DISPLAY.root_group = splash

# set progress bar width and height relative to board's display
width = board.DISPLAY.width - 40
Expand Down
2 changes: 1 addition & 1 deletion examples/progressbar_vertical_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

# Make the display context
splash = displayio.Group()
board.DISPLAY.show(splash)
board.DISPLAY.root_group = splash

# set progress bar width and height relative to board's display
width = 10
Expand Down