Skip to content

Commit 221e843

Browse files
Merge pull request #6 from lesamouraipourpre/max-size
Remove max_size parameter
2 parents dfd229b + 3016aa0 commit 221e843

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

displayio_switchround.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,7 @@ def __init__(
139139
"""""" # Blocks documentation from super-class
140140

141141
# initialize the Widget superclass (x, y, scale)
142-
super().__init__(x=x, y=y, height=height, width=width, **kwargs, max_size=4)
143-
# Define how many graphical elements will be in this group
144-
# using "max_size=XX"
145-
#
142+
super().__init__(x=x, y=y, height=height, width=width, **kwargs)
146143
# Group elements for SwitchRound:
147144
# 0. switch_roundrect: The switch background
148145
# 1. switch_circle: The switch button

docs/overview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ group to the display as in this example:
3232
.. code-block:: python
3333
3434
my_switch = Switch(20, 30) # create the switch at x=20, y=30
35-
my_group = displayio.Group(max_size = 10) # make a group that can hold 10 items
35+
my_group = displayio.Group() # make a group
3636
my_group.append(my_switch) # Add my_switch to the group
3737
3838
#

examples/displayio_switchround_multiple.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
# the switch anchored_position is 10 pixels from the display
9292
# lower right corner
9393

94-
my_group = displayio.Group(max_size=8)
94+
my_group = displayio.Group()
9595
my_group.append(my_switch)
9696
my_group.append(my_switch2)
9797
my_group.append(my_switch3)

examples/displayio_switchround_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
my_switch = Switch(20, 30)
2727

2828

29-
my_group = displayio.Group(max_size=1)
29+
my_group = displayio.Group()
3030
my_group.append(my_switch)
3131

3232
# Add my_group to the display

0 commit comments

Comments
 (0)