File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ def update(self, force: bool = False) -> None:
86
86
if force or self ._last_animate_time + self .animate_time <= _now :
87
87
88
88
if len (self .full_text ) <= self .max_characters :
89
- self .text = self .full_text
89
+ super (). _set_text ( self .full_text , self .scale )
90
90
self ._last_animate_time = _now
91
91
return
92
92
@@ -106,8 +106,7 @@ def update(self, force: bool = False) -> None:
106
106
_showing_string = "{}{}" .format (
107
107
_showing_string_start , _showing_string_end
108
108
)
109
- self .text = _showing_string
110
-
109
+ super ()._set_text (_showing_string , self .scale )
111
110
self .current_index += 1
112
111
self ._last_animate_time = _now
113
112
@@ -144,3 +143,16 @@ def full_text(self, new_text: str) -> None:
144
143
self ._full_text = new_text
145
144
self .current_index = 0
146
145
self .update ()
146
+
147
+ @property
148
+ def text (self ):
149
+ """The full text to be shown. If it's longer than ``max_characters`` then
150
+ scrolling will occur as needed.
151
+
152
+ :return str: The full text of this label.
153
+ """
154
+ return self .full_text
155
+
156
+ @text .setter
157
+ def text (self , new_text ):
158
+ self .full_text = new_text
You can’t perform that action at this time.
0 commit comments