Skip to content

Commit eeacab6

Browse files
committed
Fix text_wrap description and default val
1 parent a1cc77a commit eeacab6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_magtag/magtag.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def add_text(
119119
text_position=(0, 0),
120120
text_font=terminalio.FONT,
121121
text_color=0x000000,
122-
text_wrap=False,
122+
text_wrap=0,
123123
text_maxlen=0,
124124
text_transform=None,
125125
text_scale=1,
@@ -134,8 +134,8 @@ def add_text(
134134
example.
135135
:param text_color: The color of the text, in 0xRRGGBB format. Can be a list of colors for
136136
when there's multiple texts. Defaults to ``None``.
137-
:param text_wrap: Whether or not to wrap text (for long text data chunks). Defaults to
138-
``False``, no wrapping.
137+
:param text_wrap: When non-zero, the maximum number of characters on each line before text
138+
is wrapped. (for long text data chunks). Defaults to 0, no wrapping.
139139
:param text_maxlen: The max length of the text. If non-zero, it will be truncated to this
140140
length. Defaults to 0.
141141
:param text_transform: A function that will be called on the text before display

0 commit comments

Comments
 (0)