Skip to content

Commit

Permalink
docstr
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Feb 8, 2024
1 parent 3578f6c commit 2017951
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ovos_gui/namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,11 @@ def _add_pages(self, new_pages: List[GuiPage]):
LOG.exception(f"Error updating {client.framework} client: {e}")

def focus_page(self, page):
"""
Returns focus to a page already in the active page list.
@param page: the page that will gain focus
"""
# set the index of the page in the self.pages list
page_index = None
for i, p in enumerate(self.pages):
Expand All @@ -346,7 +351,7 @@ def focus_page(self, page):

def _activate_page(self, page: GuiPage):
"""
Returns focus to a page already in the active page list.
Tells mycroft-gui to returns focus to a page
@param page: the page that will gain focus
"""
Expand Down

0 comments on commit 2017951

Please sign in to comment.