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.
1 parent 4d8c653 commit 2250b55Copy full SHA for 2250b55
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