Added function to remove all text
This commit is contained in:
parent
01f050e401
commit
2ecdf22f84
1 changed files with 10 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ class PortalBase:
|
|||
|
||||
"""
|
||||
|
||||
# pylint: disable=too-many-instance-attributes, too-many-branches
|
||||
# pylint: disable=too-many-instance-attributes, too-many-branches, too-many-public-methods
|
||||
def __init__(
|
||||
self,
|
||||
network,
|
||||
|
|
@ -213,6 +213,15 @@ class PortalBase:
|
|||
|
||||
# pylint: enable=too-many-arguments
|
||||
|
||||
def remove_all_text(self, clear_font_cache=False):
|
||||
"""Remove all added text.
|
||||
|
||||
:param bool clear_font_cache: Clear the font cache. Defaults to False.
|
||||
"""
|
||||
self._text = []
|
||||
if clear_font_cache:
|
||||
self._fonts = {}
|
||||
|
||||
def set_text(self, val, index=0):
|
||||
"""Display text, with indexing into our list of text boxes.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue