Skip to content

Commit c6ea5d1

Browse files
authored
Merge pull request #38 from lesamouraipourpre/max-size
Remove max_size parameter
2 parents 4d9851a + 299de1d commit c6ea5d1

13 files changed

+10
-12
lines changed

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Usage Example
6161
from adafruit_display_shapes.circle import Circle
6262
from adafruit_display_shapes.roundrect import RoundRect
6363
64-
splash = displayio.Group(max_size=10)
64+
splash = displayio.Group()
6565
board.DISPLAY.show(splash)
6666
6767
color_bitmap = displayio.Bitmap(320, 240, 1)

adafruit_display_shapes/line.py

100755100644
File mode changed.

adafruit_display_shapes/polygon.py

100755100644
File mode changed.

adafruit_display_shapes/rect.py

100755100644
File mode changed.

adafruit_display_shapes/roundrect.py

100755100644
File mode changed.

adafruit_display_shapes/sparkline.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ def __init__(
8686
self._x = x
8787
self._y = y
8888

89-
super().__init__(
90-
max_size=self._max_items - 1, x=x, y=y
91-
) # self is a group of lines
89+
super().__init__(x=x, y=y) # self is a group of lines
9290

9391
def clear_values(self):
9492
"""Removes all values from the _spark_list list and removes all lines in the group"""

adafruit_display_shapes/triangle.py

100755100644
File mode changed.

examples/display_shapes_circle_animation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
display = board.DISPLAY
1818

1919
# Make the display context
20-
main_group = displayio.Group(max_size=2)
20+
main_group = displayio.Group()
2121

2222
# Make a background color fill
2323
color_bitmap = displayio.Bitmap(display.width, display.height, 1)

examples/display_shapes_simpletest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from adafruit_display_shapes.polygon import Polygon
1212

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

1717
# Make a background color fill

examples/display_shapes_simpletest_magtag.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
display = board.DISPLAY
1717

1818
# Make the display context
19-
splash = displayio.Group(max_size=20)
19+
splash = displayio.Group()
2020
display.show(splash)
2121

2222
# Make a background color fill

examples/display_shapes_sparkline_simpletest.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@
109109
#
110110
# Note: In cases where display elements will overlap, then the order the elements
111111
# are added to the group will set which is on top. Latter elements are displayed
112-
# on top of former elemtns.
113-
my_group = displayio.Group(max_size=1)
112+
# on top of former elements.
113+
my_group = displayio.Group()
114114

115115
# add the sparkline into my_group
116116
my_group.append(sparkline1)

examples/display_shapes_sparkline_ticks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
# elements are added to the group will set which is on top. Latter elements
153153
# are displayed on top of former elemtns.
154154

155-
my_group = displayio.Group(max_size=20)
155+
my_group = displayio.Group()
156156

157157
my_group.append(sparkline1)
158158
my_group.append(text_label1a)

examples/display_shapes_sparkline_triple.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@
206206
#
207207
# Note: In cases where display elements will overlap, then the order the elements
208208
# are added to the group will set which is on top. Latter elements are displayed
209-
# on top of former elemtns.
210-
my_group = displayio.Group(max_size=20)
209+
# on top of former elements.
210+
my_group = displayio.Group()
211211

212212
my_group.append(sparkline1)
213213
my_group.append(text_label1a)

0 commit comments

Comments
 (0)