Skip to content

Commit 051b313

Browse files
Fix Text.__init__ docstring and parameter docs
1 parent fbc73c8 commit 051b313

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

fury/actor/core.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,19 @@ class Text(gfx.Text, Actor):
159159
"""Text actor class."""
160160

161161
def __init__(self, text, material, position=None, **kwargs):
162+
"""Initialize a Text actor.
163+
164+
Parameters
165+
----------
166+
text : str
167+
The text content.
168+
material : TextMaterial
169+
The material object.
170+
position : tuple, optional
171+
Position of the text in 3D space (x, y, z).
172+
**kwargs : dict
173+
Additional keyword arguments passed to the parent class.
174+
"""
162175
super().__init__(text=text, material=material, **kwargs)
163176
if position is not None:
164177
self.local.position = position

0 commit comments

Comments
 (0)