class MainWindowWindow(QMainWindow, Ui_MainWindow):
    def __init__(self, auth_window):
        super(MainWindowWindow, self).__init__()
        self.setupUi(self)
        self.auth_window = auth_window
        self.initialize_signals()

        # You can add more initialization code here if necessary
        # Открытие приложения с первым отображаемым tab
        self.tabWidget.setCurrentIndex(0)  # Установите индекс нужного вкладки (например, 0 для первой вкладки)
#*************************************************
    def initialize_signals(self):
        # Connect comboBox signals to methods
        self.comboBox_3.currentIndexChanged.connect(self.handle_comboBox_3_change)
        self.comboBox_6.currentIndexChanged.connect(self.handle_comboBox_6_change)
        
        # Connect pushButton signals to methods
        self.pushButton_2.clicked.connect(self.handle_push_button_2)
        self.pushButton_3.clicked.connect(self.handle_push_button_3)

    def handle_comboBox_3_change(self, index):
        if index == 0:  # Index for "1"
            self.tabWidget.setCurrentIndex(0)  # Set to tab3
        elif index == 1:  # Index for "2"
            self.tabWidget.setCurrentIndex(1)  # Set to tab4

    def handle_comboBox_6_change(self, index):
         if index == 0:  # Index for "3"
            self.tabWidget.setCurrentIndex(2)  # Set to tab5

    def handle_push_button_2(self):
        # Set tabWidget to tab2
        self.tabWidget_3.setCurrentIndex(1)

    def handle_push_button_3(self):
        # Set tabWidget to tab (initial tab)
        self.tabWidget_3.setCurrentIndex(0)

    def goto_tab1(self):
        self.tabWidget_3.setCurrentIndex(0)  # Switch to tab 1

    def goto_tab2(self):
        self.tabWidget_3.setCurrentIndex(1)  # Switch to tab 2


Как сделать чтобы при нажатии на кнопку переключалась вкладка для pushButton_2 и pushButton_3
Как тут 
# Form implementation generated from reading ui file ‘g3.ui’
#
# Created by: PyQt6 UI code generator 6.4.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again. Do not edit this file unless you know what you are doing.


from PyQt6 import QtCore, QtGui, QtWidgets


class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(“MainWindow”)
MainWindow.resize(800, 271)
self.centralwidget = QtWidgets.QWidget(parent=MainWindow)
self.centralwidget.setObjectName(“centralwidget”)
self.tabWidget3 = QtWidgets.QTabWidget(parent=self.centralwidget)
self.tabWidget3.setGeometry(QtCore.QRect(290, 80, 281, 80))
self.tabWidget3.setObjectName(“tabWidget3”)
self.tab6 = QtWidgets.QWidget()
self.tab6.setObjectName(“tab6”)
self.pushButton = QtWidgets.QPushButton(parent=self.tab6)
self.pushButton.setGeometry(QtCore.QRect(14, 20, 241, 23))
self.pushButton.setObjectName(“pushButton”)
self.tabWidget3.addTab(self.tab6, “”)
self.tab7 = QtWidgets.QWidget()
self.tab7.setObjectName(“tab7”)
self.pushButton2 = QtWidgets.QPushButton(parent=self.tab7)
self.pushButton2.setGeometry(QtCore.QRect(20, 20, 221, 23))
self.pushButton2.setObjectName(“pushButton2”)
self.tabWidget3.addTab(self.tab7, “”)
MainWindow.setCentralWidget(self.centralwidget)

self.retranslateUi(MainWindow)
self.tabWidget3.setCurrentIndex(1)
QtCore.QMetaObject.connectSlotsByName(MainWindow)

def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate(“MainWindow”, “MainWindow”))
self.pushButton.setText(_translate(“MainWindow”, “PushButton”))
self.tabWidget3.setTabText(self.tabWidget3.indexOf(self.tab6), _translate(“MainWindow”, “Tab 1”))
self.pushButton2.setText(_translate(“MainWindow”, “PushButton2”))
self.tabWidget3.setTabText(self.tabWidget3.indexOf(self.tab7), _translate(“MainWindow”, “Tab 2”))


if name == “main”:
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec())