diff --git a/README.rst b/README.rst index e0efe60..bfbe317 100644 --- a/README.rst +++ b/README.rst @@ -61,7 +61,7 @@ Usage Example from adafruit_display_shapes.circle import Circle from adafruit_display_shapes.roundrect import RoundRect - splash = displayio.Group(max_size=10) + splash = displayio.Group() board.DISPLAY.show(splash) color_bitmap = displayio.Bitmap(320, 240, 1) diff --git a/adafruit_display_shapes/line.py b/adafruit_display_shapes/line.py old mode 100755 new mode 100644 diff --git a/adafruit_display_shapes/polygon.py b/adafruit_display_shapes/polygon.py old mode 100755 new mode 100644 diff --git a/adafruit_display_shapes/rect.py b/adafruit_display_shapes/rect.py old mode 100755 new mode 100644 diff --git a/adafruit_display_shapes/roundrect.py b/adafruit_display_shapes/roundrect.py old mode 100755 new mode 100644 diff --git a/adafruit_display_shapes/sparkline.py b/adafruit_display_shapes/sparkline.py index d970516..3c92ca9 100644 --- a/adafruit_display_shapes/sparkline.py +++ b/adafruit_display_shapes/sparkline.py @@ -86,9 +86,7 @@ def __init__( self._x = x self._y = y - super().__init__( - max_size=self._max_items - 1, x=x, y=y - ) # self is a group of lines + super().__init__(x=x, y=y) # self is a group of lines def clear_values(self): """Removes all values from the _spark_list list and removes all lines in the group""" diff --git a/adafruit_display_shapes/triangle.py b/adafruit_display_shapes/triangle.py old mode 100755 new mode 100644 diff --git a/examples/display_shapes_circle_animation.py b/examples/display_shapes_circle_animation.py index 596e32f..2b6830c 100644 --- a/examples/display_shapes_circle_animation.py +++ b/examples/display_shapes_circle_animation.py @@ -17,7 +17,7 @@ display = board.DISPLAY # Make the display context -main_group = displayio.Group(max_size=2) +main_group = displayio.Group() # Make a background color fill color_bitmap = displayio.Bitmap(display.width, display.height, 1) diff --git a/examples/display_shapes_simpletest.py b/examples/display_shapes_simpletest.py index 821b622..016cd2b 100644 --- a/examples/display_shapes_simpletest.py +++ b/examples/display_shapes_simpletest.py @@ -11,7 +11,7 @@ from adafruit_display_shapes.polygon import Polygon # Make the display context -splash = displayio.Group(max_size=20) +splash = displayio.Group() board.DISPLAY.show(splash) # Make a background color fill diff --git a/examples/display_shapes_simpletest_magtag.py b/examples/display_shapes_simpletest_magtag.py index 8d5d38b..ae007b7 100644 --- a/examples/display_shapes_simpletest_magtag.py +++ b/examples/display_shapes_simpletest_magtag.py @@ -16,7 +16,7 @@ display = board.DISPLAY # Make the display context -splash = displayio.Group(max_size=20) +splash = displayio.Group() display.show(splash) # Make a background color fill diff --git a/examples/display_shapes_sparkline_simpletest.py b/examples/display_shapes_sparkline_simpletest.py index 22bf563..0c72c95 100755 --- a/examples/display_shapes_sparkline_simpletest.py +++ b/examples/display_shapes_sparkline_simpletest.py @@ -109,8 +109,8 @@ # # Note: In cases where display elements will overlap, then the order the elements # are added to the group will set which is on top. Latter elements are displayed -# on top of former elemtns. -my_group = displayio.Group(max_size=1) +# on top of former elements. +my_group = displayio.Group() # add the sparkline into my_group my_group.append(sparkline1) diff --git a/examples/display_shapes_sparkline_ticks.py b/examples/display_shapes_sparkline_ticks.py index 14dc85c..c363402 100755 --- a/examples/display_shapes_sparkline_ticks.py +++ b/examples/display_shapes_sparkline_ticks.py @@ -152,7 +152,7 @@ # elements are added to the group will set which is on top. Latter elements # are displayed on top of former elemtns. -my_group = displayio.Group(max_size=20) +my_group = displayio.Group() my_group.append(sparkline1) my_group.append(text_label1a) diff --git a/examples/display_shapes_sparkline_triple.py b/examples/display_shapes_sparkline_triple.py index 61e5b5f..27b47e4 100755 --- a/examples/display_shapes_sparkline_triple.py +++ b/examples/display_shapes_sparkline_triple.py @@ -206,8 +206,8 @@ # # Note: In cases where display elements will overlap, then the order the elements # are added to the group will set which is on top. Latter elements are displayed -# on top of former elemtns. -my_group = displayio.Group(max_size=20) +# on top of former elements. +my_group = displayio.Group() my_group.append(sparkline1) my_group.append(text_label1a)