From d1e8fd3059479037aab717200c1a064d05b4a23a Mon Sep 17 00:00:00 2001 From: James Carr Date: Mon, 5 Jul 2021 21:00:00 +0100 Subject: [PATCH] Remove max_size parameter --- displayio_flipinput.py | 5 ++--- examples/displayio_flipinput_simpletest.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/displayio_flipinput.py b/displayio_flipinput.py index f0a5b54..2c7fe16 100644 --- a/displayio_flipinput.py +++ b/displayio_flipinput.py @@ -103,7 +103,7 @@ def __init__( **kwargs, ): - super().__init__(**kwargs, max_size=4) + super().__init__(**kwargs) # Group elements for the FlipInput. # 0. The text # 1. The group holding the temporary scroll bitmap @@ -235,8 +235,7 @@ def __init__( self._update_position() # call Widget superclass function to reposition self._animation_group = displayio.Group( - max_size=1, - scale=self._font_scale, + scale=self._font_scale ) # holds the animation bitmap # self._animation_group.x = -1 * left * (1) # self._animation_group.y = -1 * top * (1) diff --git a/examples/displayio_flipinput_simpletest.py b/examples/displayio_flipinput_simpletest.py index 7db9cc4..aadd043 100644 --- a/examples/displayio_flipinput_simpletest.py +++ b/examples/displayio_flipinput_simpletest.py @@ -92,7 +92,7 @@ my_flip3.value = "2015" # or set the value based on a string that is in the value_list # Create the group to display and append the FlipInput widgets -my_group = displayio.Group(max_size=3) +my_group = displayio.Group() my_group.append(my_flip1) my_group.append(my_flip2) my_group.append(my_flip3)