We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bda0c97 commit e0dba27Copy full SHA for e0dba27
adafruit_display_text/scrolling_label.py
@@ -51,7 +51,7 @@ def __init__(
51
self,
52
font,
53
max_characters=10,
54
- full_text="",
+ text="",
55
animate_time=0.3,
56
current_index=0,
57
**kwargs
@@ -62,15 +62,10 @@ def __init__(
62
self._current_index = current_index
63
self._last_animate_time = -1
64
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
+
+ if text[-1] != " ":
+ text = "{} ".format(text)
+ self._full_text = text
74
75
self.update()
76
0 commit comments