def ShowClients(self):
     if self.windowup:
         self.clientswindow.deleteLater()
     self.windowup = True
     self.clientswindow = ClientEdit(self)
     self.clientswindow.setupUi(self)
     self.loadedwindow = self.clientswindow
     # self.clientswindow.show()
     self.ui.gridLayout.addWidget(self.clientswindow.widget)
    def ClickedA(self):

        self.clientswindow = ClientEdit()
        self.clientswindow.setupUi(self)
        # self.clientswindow.show()
        self.ui.gridLayout.addWidget(self.clientswindow)
class MainWindow(QMainWindow):
    def __init__(self):
        super(MainWindow, self).__init__()
        self.ui = EditorConfigWindow()
        self.ui.setupUi(self)
        self.windowup = False

    def ShowClients(self):
        if self.windowup:
            self.clientswindow.deleteLater()
        self.windowup = True
        self.clientswindow = ClientEdit(self)
        self.clientswindow.setupUi(self)
        self.loadedwindow = self.clientswindow
        # self.clientswindow.show()
        self.ui.gridLayout.addWidget(self.clientswindow.widget)

    def ShowProjects(self):
        if self.windowup:
            self.clientswindow.deleteLater()
        self.windowup = True

        self.clientswindow = ProjectEditor(self)
        self.clientswindow.setupUi(self)
        self.loadedwindow = self.clientswindow

        # self.clientswindow.show()
        self.ui.gridLayout.addWidget(self.clientswindow.widget)

    def ShowShots(self):
        if self.windowup:
            self.clientswindow.deleteLater()
        self.windowup = True

        self.clientswindow = ShotEditor(self)
        self.clientswindow.setupUi(self)
        self.loadedwindow = self.clientswindow

        # self.clientswindow.show()
        # self.shotswindow = ShotEditor(self)
        # self.shotswindow.setupUi(self)
        # self.clientswindow.show()
        self.ui.gridLayout.addWidget(self.clientswindow.widget)

    def ClickedA(self):

        self.clientswindow = ClientEdit()
        self.clientswindow.setupUi(self)
        # self.clientswindow.show()
        self.ui.gridLayout.addWidget(self.clientswindow)