Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions arcade/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,24 @@ def multiline(self) -> bool:
def multiline(self, multiline: bool):
self.label.multiline = multiline

@property
def visible(self) -> bool:
"""
Whether the text is visible or not.

This is a property of the underlying pyglet.Label.
"""
return self.label.visible

@visible.setter
def visible(self, visible: bool):
"""
Set the visibility of the text.

This is a property of the underlying pyglet.Label.
"""
self.label.visible = visible

def draw(self) -> None:
"""
Draw the label to the screen at its current ``x`` and ``y`` position.
Expand Down
Loading