From 201795146c3ad6954664a970f66b787370af1eb5 Mon Sep 17 00:00:00 2001 From: JarbasAi Date: Thu, 8 Feb 2024 00:33:17 +0000 Subject: [PATCH] docstr --- ovos_gui/namespace.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ovos_gui/namespace.py b/ovos_gui/namespace.py index 04a3da1..c2e0651 100644 --- a/ovos_gui/namespace.py +++ b/ovos_gui/namespace.py @@ -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): @@ -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 """