Skip to content

Commit

Permalink
v2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
BBC-Esq authored Oct 9, 2023
1 parent 6a9d04d commit 3a9f0fe
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions gui_tabs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# tabs.py

from PySide6.QtWebEngineWidgets import QWebEngineView
from PySide6.QtWidgets import QTextEdit, QTabWidget
from PySide6.QtCore import QUrl
Expand All @@ -13,10 +11,17 @@ def create_tabs(tabs_config):
for i, tab in enumerate(tabs_config):
tab_widget.addTab(tab_widgets[i], tab.get('name', ''))

# Adding the Tutorial tab
tutorial_tab = QWebEngineView()
tab_widget.addTab(tutorial_tab, 'Tutorial')
tab_widget.addTab(tutorial_tab, 'Floating Point Formats')
user_manual_folder = os.path.join(os.path.dirname(__file__), 'User_Manual')
html_file_path = os.path.join(user_manual_folder, 'number_format.html')
tutorial_tab.setUrl(QUrl.fromLocalFile(html_file_path))
tutorial_html_path = os.path.join(user_manual_folder, 'number_format.html')
tutorial_tab.setUrl(QUrl.fromLocalFile(tutorial_html_path))

# Adding the Whisper tab
whisper_tab = QWebEngineView()
whisper_html_path = os.path.join(user_manual_folder, 'whisper_quants.html')
whisper_tab.setUrl(QUrl.fromLocalFile(whisper_html_path))
tab_widget.addTab(whisper_tab, 'Whisper')

return tab_widget

0 comments on commit 3a9f0fe

Please sign in to comment.