Skip to content

Commit 9052492

Browse files
authored
Merge pull request #62 from makermelissa/master
Fix docstrings for add_text
2 parents 83a4eab + fcdc088 commit 9052492

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

adafruit_matrixportal/matrixportal.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,10 @@ def add_text(
152152
example.
153153
:param text_color: The color of the text, in 0xRRGGBB format. Can be a list of colors for
154154
when there's multiple texts. Defaults to ``None``.
155-
:param text_wrap: Whether or not to wrap text (for long text data chunks). Defaults to
156-
``False``, no wrapping.
157-
:param text_maxlen: The max length of the text for text wrapping. Defaults to 0.
155+
:param text_wrap: When non-zero, the maximum number of characters on each line before text
156+
is wrapped. (for long text data chunks). Defaults to 0, no wrapping.
157+
:param text_maxlen: The max length of the text. If non-zero, it will be truncated to this
158+
length. Defaults to 0.
158159
:param text_transform: A function that will be called on the text before display
159160
:param int text_scale: The factor to scale the default size of the text by
160161
:param bool scrolling: If true, text is placed offscreen and the scroll() function is used

0 commit comments

Comments
 (0)