From 6c4bcbd6b1621bb5e6e87512f38c193f8056833e Mon Sep 17 00:00:00 2001 From: miro Date: Mon, 21 Oct 2024 23:01:23 +0100 Subject: [PATCH] fix:qml_deprecated_extension --- ovos_bus_client/apis/gui.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ovos_bus_client/apis/gui.py b/ovos_bus_client/apis/gui.py index fda7f0e..79eae0f 100644 --- a/ovos_bus_client/apis/gui.py +++ b/ovos_bus_client/apis/gui.py @@ -74,7 +74,7 @@ class GUIInterface: via the built-in sessionData mechanism. For example, in Python you can write in a skill: self.gui['temp'] = 33 - self.gui.show_page('Weather.qml') + self.gui.show_page('Weather') Then in the Weather.qml you'd access the temp via code such as: text: sessionData.time """ @@ -527,7 +527,7 @@ def show_text(self, text: str, title: Optional[str] = None, """ self["text"] = text self["title"] = title - self.show_page("SYSTEM_TextFrame.qml", override_idle, + self.show_page("SYSTEM_TextFrame", override_idle, override_animations) def show_image(self, url: str, caption: Optional[str] = None, @@ -559,7 +559,7 @@ def show_image(self, url: str, caption: Optional[str] = None, self["caption"] = caption self["fill"] = fill self["background_color"] = background_color - self.show_page("SYSTEM_ImageFrame.qml", override_idle, + self.show_page("SYSTEM_ImageFrame", override_idle, override_animations) def show_animated_image(self, url: str, caption: Optional[str] = None, @@ -591,7 +591,7 @@ def show_animated_image(self, url: str, caption: Optional[str] = None, self["caption"] = caption self["fill"] = fill self["background_color"] = background_color - self.show_page("SYSTEM_AnimatedImageFrame.qml", override_idle, + self.show_page("SYSTEM_AnimatedImageFrame", override_idle, override_animations) def show_html(self, html: str, resource_url: Optional[str] = None, @@ -613,7 +613,7 @@ def show_html(self, html: str, resource_url: Optional[str] = None, """ self["html"] = html self["resourceLocation"] = resource_url - self.show_page("SYSTEM_HtmlFrame.qml", override_idle, + self.show_page("SYSTEM_HtmlFrame", override_idle, override_animations) def show_url(self, url: str, override_idle: Union[int, bool] = None, @@ -632,7 +632,7 @@ def show_url(self, url: str, override_idle: Union[int, bool] = None, False: 'Default' always show animations. """ self["url"] = url - self.show_page("SYSTEM_UrlFrame.qml", override_idle, + self.show_page("SYSTEM_UrlFrame", override_idle, override_animations) def show_input_box(self, title: Optional[str] = None, @@ -664,7 +664,7 @@ def show_input_box(self, title: Optional[str] = None, else: self["exit_text"] = exit_text - self.show_page("SYSTEM_InputBox.qml", override_idle, + self.show_page("SYSTEM_InputBox", override_idle, override_animations) def remove_input_box(self): @@ -673,7 +673,7 @@ def remove_input_box(self): """ LOG.info(f"GUI pages length {len(self._pages)}") if len(self._pages) > 1: - self.remove_page("SYSTEM_InputBox.qml") + self.remove_page("SYSTEM_InputBox") else: self.release()