From 825854cef7d2bb12ba121e53d100bdb2fbf67293 Mon Sep 17 00:00:00 2001 From: James Carr Date: Fri, 2 Jul 2021 14:58:28 +0100 Subject: [PATCH] Remove max_size parameter --- examples/progressbar_accelerometer.py | 2 +- examples/progressbar_combined.py | 2 +- examples/progressbar_displayio_blinka.py | 2 +- examples/progressbar_displayio_blinka_color_scale.py | 4 ++-- examples/progressbar_magtag_simpletest.py | 2 +- examples/progressbar_matrixportal.py | 2 +- examples/progressbar_simpletest.py | 2 +- examples/progressbar_vertical_simpletest.py | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/progressbar_accelerometer.py b/examples/progressbar_accelerometer.py index b47e3c8..833b8df 100644 --- a/examples/progressbar_accelerometer.py +++ b/examples/progressbar_accelerometer.py @@ -137,7 +137,7 @@ (3.476150, -4.812025, 7.421532), ] display = board.DISPLAY -main_group = displayio.Group(max_size=10) +main_group = displayio.Group() display.show(main_group) color_bitmap = displayio.Bitmap(display.width, display.height, 1) diff --git a/examples/progressbar_combined.py b/examples/progressbar_combined.py index ce3c2a1..0ecf0ba 100644 --- a/examples/progressbar_combined.py +++ b/examples/progressbar_combined.py @@ -14,7 +14,7 @@ from adafruit_progressbar.verticalprogressbar import VerticalProgressBar # Make the display context -splash = displayio.Group(max_size=10) +splash = displayio.Group() board.DISPLAY.show(splash) # set horizontal progress bar width and height relative to board's display diff --git a/examples/progressbar_displayio_blinka.py b/examples/progressbar_displayio_blinka.py index a4e5739..adb702c 100644 --- a/examples/progressbar_displayio_blinka.py +++ b/examples/progressbar_displayio_blinka.py @@ -22,7 +22,7 @@ ) display = PyGameDisplay(width=320, height=240, auto_refresh=False) -splash = displayio.Group(max_size=10) +splash = displayio.Group() display.show(splash) color_bitmap = displayio.Bitmap(display.width, display.height, 1) diff --git a/examples/progressbar_displayio_blinka_color_scale.py b/examples/progressbar_displayio_blinka_color_scale.py index ad7665a..d8aa547 100644 --- a/examples/progressbar_displayio_blinka_color_scale.py +++ b/examples/progressbar_displayio_blinka_color_scale.py @@ -23,7 +23,7 @@ ) display = PyGameDisplay(width=320, height=240, auto_refresh=False) -splash = displayio.Group(max_size=10) +splash = displayio.Group() display.show(splash) # Setting up the grayscale values, You could use a different scale, and add more entries @@ -70,7 +70,7 @@ splash.append(horizontal_bar) # List of step values for the progress bar -test_value_range_1 = [i for i in range(99)] +test_value_range_1 = list(range(99)) # Must check display.running in the main loop! while display.running: diff --git a/examples/progressbar_magtag_simpletest.py b/examples/progressbar_magtag_simpletest.py index f002b79..f70e997 100644 --- a/examples/progressbar_magtag_simpletest.py +++ b/examples/progressbar_magtag_simpletest.py @@ -28,7 +28,7 @@ down_btn.pull = digitalio.Pull.UP # Make the display context -splash = displayio.Group(max_size=10) +splash = displayio.Group() display.show(splash) # set progress bar width and height relative to board's display diff --git a/examples/progressbar_matrixportal.py b/examples/progressbar_matrixportal.py index ab69eac..164481d 100644 --- a/examples/progressbar_matrixportal.py +++ b/examples/progressbar_matrixportal.py @@ -63,7 +63,7 @@ display = framebufferio.FramebufferDisplay(matrix) print("Adding display group") -group = displayio.Group(max_size=5) # Create a group to hold all our labels +group = displayio.Group() # Create a group to hold all our labels display.show(group) print("Creating progress bars and adding to group") diff --git a/examples/progressbar_simpletest.py b/examples/progressbar_simpletest.py index de3cb90..c920082 100644 --- a/examples/progressbar_simpletest.py +++ b/examples/progressbar_simpletest.py @@ -10,7 +10,7 @@ ) # Make the display context -splash = displayio.Group(max_size=10) +splash = displayio.Group() board.DISPLAY.show(splash) # set progress bar width and height relative to board's display diff --git a/examples/progressbar_vertical_simpletest.py b/examples/progressbar_vertical_simpletest.py index 8018ed0..f4f2462 100644 --- a/examples/progressbar_vertical_simpletest.py +++ b/examples/progressbar_vertical_simpletest.py @@ -10,7 +10,7 @@ ) # Make the display context -splash = displayio.Group(max_size=10) +splash = displayio.Group() board.DISPLAY.show(splash) # set progress bar width and height relative to board's display