From 8bea3b0a529a8d7e4b335028cb8c41d1a8395004 Mon Sep 17 00:00:00 2001 From: David Glaude Date: Tue, 22 Apr 2025 00:43:20 +0200 Subject: [PATCH] margin_size seems to be int like in Vertical and Horizontal The documentation is confusing. Not sure when margin_size ever was a bool, but it looks like an int to me. --- adafruit_progressbar/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/adafruit_progressbar/__init__.py b/adafruit_progressbar/__init__.py index 6344bbd..0cc4da1 100755 --- a/adafruit_progressbar/__init__.py +++ b/adafruit_progressbar/__init__.py @@ -54,10 +54,10 @@ class ProgressBarBase(displayio.TileGrid): be a hexadecimal value for color (0xEE7755). Default: 0x000000 (Black) :type fill_color: int - :param margin_size: Specify whether a margin between the border of the widget and the bar - representing the value should be visible or not. - Default: True - :type margin_size: bool + :param margin_size: The thickness (in pixels) of the margin between the border and + the bar. If it is 1 or larger, will be filled in by the color of the + "fill_color" parameter. + :type margin_size: int :param value_range: Specify the range of allowed values for which the progress should be displayed. When setting the "value" property, this range is the one against which its progression will be determined.