From 3016aa08a3dd7ec21174bcf6768063b0e5bc5a25 Mon Sep 17 00:00:00 2001 From: James Carr Date: Sun, 4 Jul 2021 20:25:24 +0100 Subject: [PATCH] Remove max_size parameter --- displayio_switchround.py | 5 +---- docs/overview.rst | 2 +- examples/displayio_switchround_multiple.py | 2 +- examples/displayio_switchround_simpletest.py | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/displayio_switchround.py b/displayio_switchround.py index ffd3b57..cbbf0cf 100644 --- a/displayio_switchround.py +++ b/displayio_switchround.py @@ -139,10 +139,7 @@ def __init__( """""" # Blocks documentation from super-class # initialize the Widget superclass (x, y, scale) - super().__init__(x=x, y=y, height=height, width=width, **kwargs, max_size=4) - # Define how many graphical elements will be in this group - # using "max_size=XX" - # + super().__init__(x=x, y=y, height=height, width=width, **kwargs) # Group elements for SwitchRound: # 0. switch_roundrect: The switch background # 1. switch_circle: The switch button diff --git a/docs/overview.rst b/docs/overview.rst index 1fdf672..bfd62d8 100644 --- a/docs/overview.rst +++ b/docs/overview.rst @@ -32,7 +32,7 @@ group to the display as in this example: .. code-block:: python my_switch = Switch(20, 30) # create the switch at x=20, y=30 - my_group = displayio.Group(max_size = 10) # make a group that can hold 10 items + my_group = displayio.Group() # make a group my_group.append(my_switch) # Add my_switch to the group # diff --git a/examples/displayio_switchround_multiple.py b/examples/displayio_switchround_multiple.py index ee69765..95faff8 100755 --- a/examples/displayio_switchround_multiple.py +++ b/examples/displayio_switchround_multiple.py @@ -91,7 +91,7 @@ # the switch anchored_position is 10 pixels from the display # lower right corner -my_group = displayio.Group(max_size=8) +my_group = displayio.Group() my_group.append(my_switch) my_group.append(my_switch2) my_group.append(my_switch3) diff --git a/examples/displayio_switchround_simpletest.py b/examples/displayio_switchround_simpletest.py index ad75e25..b890d84 100644 --- a/examples/displayio_switchround_simpletest.py +++ b/examples/displayio_switchround_simpletest.py @@ -26,7 +26,7 @@ my_switch = Switch(20, 30) -my_group = displayio.Group(max_size=1) +my_group = displayio.Group() my_group.append(my_switch) # Add my_group to the display