Skip to content

Commit e0dba27

Browse files
committed
argument name to text
1 parent bda0c97 commit e0dba27

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

adafruit_display_text/scrolling_label.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(
5151
self,
5252
font,
5353
max_characters=10,
54-
full_text="",
54+
text="",
5555
animate_time=0.3,
5656
current_index=0,
5757
**kwargs
@@ -62,15 +62,10 @@ def __init__(
6262
self._current_index = current_index
6363
self._last_animate_time = -1
6464
self.max_characters = max_characters
65-
if "text" in kwargs:
66-
raise ValueError(
67-
"User code should not set the text argument on ScrollingText. "
68-
"Use full_text instead."
69-
)
70-
71-
if full_text[-1] != " ":
72-
full_text = "{} ".format(full_text)
73-
self._full_text = full_text
65+
66+
if text[-1] != " ":
67+
text = "{} ".format(text)
68+
self._full_text = text
7469

7570
self.update()
7671

0 commit comments

Comments
 (0)