Skip to content

Commit 8bea3b0

Browse files
authored
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.
1 parent 283822c commit 8bea3b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

adafruit_progressbar/__init__.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ class ProgressBarBase(displayio.TileGrid):
5454
be a hexadecimal value for color (0xEE7755).
5555
Default: 0x000000 (Black)
5656
:type fill_color: int
57-
:param margin_size: Specify whether a margin between the border of the widget and the bar
58-
representing the value should be visible or not.
59-
Default: True
60-
:type margin_size: bool
57+
:param margin_size: The thickness (in pixels) of the margin between the border and
58+
the bar. If it is 1 or larger, will be filled in by the color of the
59+
"fill_color" parameter.
60+
:type margin_size: int
6161
:param value_range: Specify the range of allowed values for which the progress
6262
should be displayed. When setting the "value" property,
6363
this range is the one against which its progression will be determined.

0 commit comments

Comments
 (0)