Skip to content

Remove max_size parameter #32

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
Jul 2, 2021
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 @@ -137,7 +137,7 @@
(3.476150, -4.812025, 7.421532),
]
display = board.DISPLAY
main_group = displayio.Group(max_size=10)
main_group = displayio.Group()
display.show(main_group)

color_bitmap = displayio.Bitmap(display.width, display.height, 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 @@ -14,7 +14,7 @@
from adafruit_progressbar.verticalprogressbar import VerticalProgressBar

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

# set horizontal progress bar width and height relative to board's display
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 @@ -22,7 +22,7 @@
)

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

color_bitmap = displayio.Bitmap(display.width, display.height, 1)
Expand Down
4 changes: 2 additions & 2 deletions examples/progressbar_displayio_blinka_color_scale.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(max_size=10)
splash = displayio.Group()
display.show(splash)

# Setting up the grayscale values, You could use a different scale, and add more entries
Expand Down Expand Up @@ -70,7 +70,7 @@
splash.append(horizontal_bar)

# List of step values for the progress bar
test_value_range_1 = [i for i in range(99)]
test_value_range_1 = list(range(99))

# Must check display.running in the main loop!
while display.running:
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 @@ -28,7 +28,7 @@
down_btn.pull = digitalio.Pull.UP

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

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

print("Adding display group")
group = displayio.Group(max_size=5) # Create a group to hold all our labels
group = displayio.Group() # Create a group to hold all our labels
display.show(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 @@ -10,7 +10,7 @@
)

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

# set progress bar width and height relative to board's display
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 @@ -10,7 +10,7 @@
)

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

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