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 01f050e commit 2ecdf22Copy full SHA for 2ecdf22
adafruit_portalbase/__init__.py
@@ -55,7 +55,7 @@ class PortalBase:
55
56
"""
57
58
- # pylint: disable=too-many-instance-attributes, too-many-branches
+ # pylint: disable=too-many-instance-attributes, too-many-branches, too-many-public-methods
59
def __init__(
60
self,
61
network,
@@ -213,6 +213,15 @@ def add_text(
213
214
# pylint: enable=too-many-arguments
215
216
+ def remove_all_text(self, clear_font_cache=False):
217
+ """Remove all added text.
218
+
219
+ :param bool clear_font_cache: Clear the font cache. Defaults to False.
220
+ """
221
+ self._text = []
222
+ if clear_font_cache:
223
+ self._fonts = {}
224
225
def set_text(self, val, index=0):
226
"""Display text, with indexing into our list of text boxes.
227
0 commit comments