Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for the PyHTMX GUI client #73

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ovos_gui/bus.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def on_message(self, message: str):
default_qt_version = \
Configuration().get('gui', {}).get('default_qt_version') or 5
msg_type = parsed_message.msg_type
msg_data = parsed_message.data
msg_data = parsed_message.data.get('data', {})

framework = msg_data.get("framework") # new api
if framework is None:
Expand Down
4 changes: 4 additions & 0 deletions ovos_gui/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ def get_file_extension(framework: str) -> str:
"""
if framework in ("qt5", "qt6"):
return "qml"
elif framework in ("py-htmx", ):
return "py"
else:
pass
return ""

@property
Expand Down