#!/usr/bin/env python3
"""Test script to verify PySide6 imports are working correctly"""

print("Testing PySide6 imports...\n")

try:
    print("1. Testing QtWidgets imports...")
    from PySide6.QtWidgets import (
        QMainWindow, QTabWidget, QDockWidget, QMessageBox,
        QApplication, QFileDialog, QSplashScreen
    )
    print("   ✅ QtWidgets imports successful\n")
except Exception as e:
    print(f"   ❌ QtWidgets imports failed: {e}\n")

try:
    print("2. Testing QtCore imports...")
    from PySide6.QtCore import Qt, QTimer, QSettings, QSize, Slot
    print("   ✅ QtCore imports successful\n")
except Exception as e:
    print(f"   ❌ QtCore imports failed: {e}\n")

try:
    print("3. Testing QtGui imports...")
    from PySide6.QtGui import QIcon, QPixmap, QAction
    print("   ✅ QtGui imports successful\n")
except Exception as e:
    print(f"   ❌ QtGui imports failed: {e}\n")

try:
    print("4. Testing main_window1 import...")
    from ui.main_window1 import MainWindow
    print("   ✅ main_window1 import successful\n")
except Exception as e:
    print(f"   ❌ main_window1 import failed: {e}\n")
    import traceback
    traceback.print_exc()

print("✅ All tests completed.")
