-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathtest_settings_tabs.py
More file actions
38 lines (29 loc) · 1.11 KB
/
test_settings_tabs.py
File metadata and controls
38 lines (29 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env python3
"""
Test script to verify the tabbed settings dialog structure.
"""
import sys
from PyQt6.QtWidgets import QApplication
from llama_assistant.setting_dialog import SettingsDialog
def main():
app = QApplication(sys.argv)
# Create settings dialog
dialog = SettingsDialog()
# Print tab information
print("=== Settings Dialog Tab Structure ===")
print(f"Total tabs: {dialog.tab_widget.count()}")
print("\nTabs:")
for i in range(dialog.tab_widget.count()):
tab_name = dialog.tab_widget.tabText(i)
print(f" {i + 1}. {tab_name}")
print("\n✓ Settings dialog created successfully with tabbed interface!")
print("\nTab descriptions:")
print(" • General: Shortcuts, appearance, and voice activation")
print(" • Models: Model selection and generation parameters")
print(" • RAG: Embedding models and retrieval settings")
print(" • Actions: Custom action button management")
# Optionally show the dialog (comment out if running headless)
# dialog.show()
# sys.exit(app.exec())
if __name__ == "__main__":
main()