We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 60b6847 + 2250b55 commit 44afd37Copy full SHA for 44afd37
arcade/text.py
@@ -633,6 +633,24 @@ def multiline(self) -> bool:
633
def multiline(self, multiline: bool):
634
self.label.multiline = multiline
635
636
+ @property
637
+ def visible(self) -> bool:
638
+ """
639
+ Whether the text is visible or not.
640
+
641
+ This is a property of the underlying pyglet.Label.
642
643
+ return self.label.visible
644
645
+ @visible.setter
646
+ def visible(self, visible: bool):
647
648
+ Set the visibility of the text.
649
650
651
652
+ self.label.visible = visible
653
654
def draw(self) -> None:
655
"""
656
Draw the label to the screen at its current ``x`` and ``y`` position.
0 commit comments