Skip to content

Commit 6b5e569

Browse files
Merge pull request #32 from lesamouraipourpre/max-size
Remove max_size parameter
2 parents 17f1290 + 825854c commit 6b5e569

8 files changed

+9
-9
lines changed

examples/progressbar_accelerometer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
(3.476150, -4.812025, 7.421532),
138138
]
139139
display = board.DISPLAY
140-
main_group = displayio.Group(max_size=10)
140+
main_group = displayio.Group()
141141
display.show(main_group)
142142

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

examples/progressbar_combined.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from adafruit_progressbar.verticalprogressbar import VerticalProgressBar
1515

1616
# Make the display context
17-
splash = displayio.Group(max_size=10)
17+
splash = displayio.Group()
1818
board.DISPLAY.show(splash)
1919

2020
# set horizontal progress bar width and height relative to board's display

examples/progressbar_displayio_blinka.py

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

2424
display = PyGameDisplay(width=320, height=240, auto_refresh=False)
25-
splash = displayio.Group(max_size=10)
25+
splash = displayio.Group()
2626
display.show(splash)
2727

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

examples/progressbar_displayio_blinka_color_scale.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
)
2424

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

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

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

7575
# Must check display.running in the main loop!
7676
while display.running:

examples/progressbar_magtag_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
down_btn.pull = digitalio.Pull.UP
2929

3030
# Make the display context
31-
splash = displayio.Group(max_size=10)
31+
splash = displayio.Group()
3232
display.show(splash)
3333

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

examples/progressbar_matrixportal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
display = framebufferio.FramebufferDisplay(matrix)
6464

6565
print("Adding display group")
66-
group = displayio.Group(max_size=5) # Create a group to hold all our labels
66+
group = displayio.Group() # Create a group to hold all our labels
6767
display.show(group)
6868

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

examples/progressbar_simpletest.py

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

1212
# Make the display context
13-
splash = displayio.Group(max_size=10)
13+
splash = displayio.Group()
1414
board.DISPLAY.show(splash)
1515

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

examples/progressbar_vertical_simpletest.py

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

1212
# Make the display context
13-
splash = displayio.Group(max_size=10)
13+
splash = displayio.Group()
1414
board.DISPLAY.show(splash)
1515

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

0 commit comments

Comments
 (0)