from PyQt6.QtWidgets import (
    QApplication, QMainWindow, QWidget, QTabWidget, QListWidgetItem, QStackedWidget, QVBoxLayout, QLabel, QHBoxLayout
, QCheckBox, QAbstractItemView)
from PyQt6.QtGui import QIcon, QFont
from PyQt6.QtCore import QSize, Qt
import sys
# import QuDAP.GUI.SHG.SHG_General as sg
from .SHG_General import *

class SHG(QMainWindow):
    def __init__(self):
        super().__init__()

        # self.setWindowTitle("PyQt6 Tab Example")
        self.setGeometry(100, 100, 800, 600)

        # Create a QTabWidget
        self.tab_widget = QTabWidget()

        # Create tabs
        self.tab1 = QWidget()
        self.tab2 = QWidget()
        self.tab3 = QWidget()

        # Add tabs to the QTabWidget
        self.tab_widget.addTab(self.tab1, "SHG Data Processing (UNO)")
        self.tab_widget.addTab(self.tab2, "Tab 2")
        self.tab_widget.addTab(self.tab3, "Tab 3")

        # Create layouts for each tab
        self.tab1_layout = QVBoxLayout()
        self.tab2_layout = QVBoxLayout()
        self.tab3_layout = QVBoxLayout()

        # Add content to each tab
        self.uno_widget = General()
        self.tab1_layout.addWidget(self.uno_widget)
        self.tab2_layout.addWidget(QLabel("Content of Tab 2"))
        self.tab3_layout.addWidget(QLabel("Content of Tab 3"))

        # Set the layout for each tab
        self.tab1.setLayout(self.tab1_layout)
        self.tab2.setLayout(self.tab2_layout)
        self.tab3.setLayout(self.tab3_layout)

        # Set the central widget of the main window to the QTabWidget
        self.setCentralWidget(self.tab_widget)