File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ def add_text(
144
144
line_spacing = 1.25 ,
145
145
text_anchor_point = (0 , 0.5 ),
146
146
is_data = True ,
147
+ text = None ,
147
148
):
148
149
"""
149
150
Add text labels with settings
@@ -166,6 +167,11 @@ def add_text(
166
167
:param (float, float) text_anchor_point: Values between 0 and 1 to indicate where the text
167
168
position is relative to the label
168
169
:param bool is_data: If True, fetch will attempt to update the label
170
+ :param str text: If this is provided, it will set the initial text of the label.
171
+
172
+ :return: Index of the new text label.
173
+ :rtype: int
174
+
169
175
"""
170
176
if scrolling :
171
177
if text_position is None :
@@ -185,6 +191,7 @@ def add_text(
185
191
line_spacing = line_spacing ,
186
192
text_anchor_point = text_anchor_point ,
187
193
is_data = is_data ,
194
+ text = text ,
188
195
)
189
196
190
197
self ._text [index ]["scrolling" ] = scrolling
You can’t perform that action at this time.
0 commit comments