File tree 1 file changed +6
-2
lines changed 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -170,9 +170,10 @@ def add_text(
170
170
text_anchor_point = (0 , 0.5 ),
171
171
is_data = True ,
172
172
text = None ,
173
- ):
173
+ ) -> int :
174
174
"""
175
- Add text labels with settings
175
+ Add text labels with settings. Returns the index of the label,
176
+ for use with ``set_text()`` and ``set_text_color()``.
176
177
177
178
:param str text_font: The path to your font file for your data text display.
178
179
:param text_position: The position of your extracted text on the display in an (x, y) tuple.
@@ -192,6 +193,9 @@ def add_text(
192
193
:param bool is_data: If True, fetch will attempt to update the label
193
194
:param str text: If this is provided, it will set the initial text of the label.
194
195
196
+ :return: Index of the new text label.
197
+ :rtype: int
198
+
195
199
"""
196
200
if not text_wrap :
197
201
text_wrap = 0
You can’t perform that action at this time.
0 commit comments