NewDes

 avatar
unknown
plain_text
2 years ago
17 kB
3
Indexable
# Form implementation generated from reading ui file '.\DesignForV720p.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
import resources

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.setWindowModality(QtCore.Qt.WindowModality.NonModal)
        MainWindow.setEnabled(True)
        MainWindow.resize(1280, 720)
        MainWindow.setStyleSheet("QMainWindow::statusBar {\n"
"    /* Specify the desired styles for the status bar */\n"
"    /* For example, to hide the status bar completely: */\n"
"    background-color: transparent;\n"
"    height: 0px;\n"
"}")
        MainWindow.setAnimated(True)
        MainWindow.setDocumentMode(False)
        MainWindow.setUnifiedTitleAndToolBarOnMac(True)
        self.centralwidget = QtWidgets.QWidget(parent=MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.frame = QtWidgets.QFrame(parent=self.centralwidget)
        self.frame.setGeometry(QtCore.QRect(0, 0, 1280, 720))
        self.frame.setStyleSheet("background: transparent;  border: 0px ;\n"
"background-image: url(:/NewPref/Background.png);\n"
"background-repeat: no repeat;\n"
"")
        self.frame.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
        self.frame.setObjectName("frame")
        self.widget = QtWidgets.QWidget(parent=self.frame)
        self.widget.setGeometry(QtCore.QRect(310, 160, 671, 531))
        self.widget.setStyleSheet("background: transparent;  border: 0px ;\n"
"background-image: url(:/NewPref/chatbox.png);\n"
"background-position: top center;\n"
"background-repeat: no repeat;")
        self.widget.setObjectName("widget")
        self.ChatBox = QtWidgets.QTextEdit(parent=self.widget)
        self.ChatBox.setEnabled(True)
        self.ChatBox.setGeometry(QtCore.QRect(70, 101, 555, 322))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.ChatBox.sizePolicy().hasHeightForWidth())
        self.ChatBox.setSizePolicy(sizePolicy)
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
        palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 0))
        brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
        palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
        palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
        palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.BrushStyle.NoBrush)
        palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 0))
        brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
        palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255, 128))
        brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
        palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.PlaceholderText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
        palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 0))
        brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
        palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
        palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
        palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.BrushStyle.NoBrush)
        palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 0))
        brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
        palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255, 128))
        brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
        palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.PlaceholderText, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
        palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 0))
        brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
        palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Button, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
        palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255))
        brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
        palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))
        brush.setStyle(QtCore.Qt.BrushStyle.NoBrush)
        palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Base, brush)
        brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 0))
        brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
        palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Window, brush)
        brush = QtGui.QBrush(QtGui.QColor(255, 255, 255, 128))
        brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern)
        palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.PlaceholderText, brush)
        self.ChatBox.setPalette(palette)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.ChatBox.setFont(font)
        self.ChatBox.setStyleSheet("color: white; background: transparent;  border: 0px ;\n"
"background-image: url(:/NewPref/ChatTextBox.png);\n"
"background-position: center;\n"
"background-repeat: no repeat;")
        self.ChatBox.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.SizeAdjustPolicy.AdjustIgnored)
        self.ChatBox.setTabChangesFocus(False)
        self.ChatBox.setReadOnly(True)
        self.ChatBox.setObjectName("ChatBox")
        self.user_input = QtWidgets.QTextEdit(parent=self.widget)
        self.user_input.setGeometry(QtCore.QRect(71, 430, 554, 61))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.user_input.sizePolicy().hasHeightForWidth())
        self.user_input.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.user_input.setFont(font)
        self.user_input.setStyleSheet("color: white; background: transparent;  border: 0px ;\n"
"background-image: url(:/NewPref/ChatLine.png);\n"
"background-position: center;\n"
"background-repeat: no repeat;")
        self.user_input.setObjectName("user_input")
        self.model_button = QtWidgets.QPushButton(parent=self.widget)
        self.model_button.setEnabled(True)
        self.model_button.setGeometry(QtCore.QRect(69, 71, 110, 18))
        self.model_button.setStyleSheet("background: transparent;  border: 0px ;\n"
"background-image: url(:/NewPref/ChatBoxButtonLeft.png);\n"
"background-position: center;\n"
"qproperty-iconAlignment: \'center\';\n"
"background-repeat: no repeat;")
        self.model_button.setText("")
        self.model_button.setObjectName("model_button")
        self.Role_button = QtWidgets.QPushButton(parent=self.widget)
        self.Role_button.setGeometry(QtCore.QRect(169, 70, 128, 20))
        self.Role_button.setStyleSheet("background: transparent;  border: 0px ;\n"
"background-image: url(:/NewPref/ChatBoxButtonRight.png);\n"
"background-position: center;\n"
"background-repeat: no repeat;")
        self.Role_button.setText("")
        self.Role_button.setObjectName("Role_button")
        self.Model_name = QtWidgets.QLineEdit(parent=self.widget)
        self.Model_name.setGeometry(QtCore.QRect(90, 50, 91, 21))
        self.Model_name.setStyleSheet("color: cyan; background: transparent;  border: 0px ;")
        self.Model_name.setObjectName("Model_name")
        self.RoleEdit = QtWidgets.QLineEdit(parent=self.widget)
        self.RoleEdit.setGeometry(QtCore.QRect(180, 50, 111, 21))
        self.RoleEdit.setStyleSheet("color: magenta; background: transparent;  border: 0px ;")
        self.RoleEdit.setText("")
        self.RoleEdit.setObjectName("RoleEdit")
        self.ReStartButton = QtWidgets.QPushButton(parent=self.widget)
        self.ReStartButton.setGeometry(QtCore.QRect(625, 110, 34, 48))
        self.ReStartButton.setToolTip("")
        self.ReStartButton.setStyleSheet("background: transparent;  border: 0px ;\n"
"background-image: url(:/NewPref/Re-Start Button.png);\n"
"background-position: center;\n"
"background-repeat: no repeat;")
        self.ReStartButton.setText("")
        self.ReStartButton.setObjectName("ReStartButton")
        self.SaveButton = QtWidgets.QPushButton(parent=self.widget)
        self.SaveButton.setGeometry(QtCore.QRect(627, 170, 32, 42))
        self.SaveButton.setToolTip("")
        self.SaveButton.setStyleSheet("background: transparent;  border: 0px ;\n"
"background-image: url(:/NewPref/save button.png);\n"
"background-position: center;\n"
"background-repeat: no repeat;")
        self.SaveButton.setText("")
        self.SaveButton.setObjectName("SaveButton")
        self.Role_button.raise_()
        self.ChatBox.raise_()
        self.user_input.raise_()
        self.model_button.raise_()
        self.Model_name.raise_()
        self.RoleEdit.raise_()
        self.ReStartButton.raise_()
        self.SaveButton.raise_()
        self.right_pink_button = QtWidgets.QPushButton(parent=self.frame)
        self.right_pink_button.setGeometry(QtCore.QRect(969, 573, 266, 109))
        self.right_pink_button.setStyleSheet("background: transparent;  border: 0px ;\n"
"background-image: url(:/NewPref/Right Pink button.png);\n"
"background-position: center;\n"
"background-repeat: no-repeat;")
        self.right_pink_button.setText("")
        self.right_pink_button.setObjectName("right_pink_button")
        self.right_purple_button = QtWidgets.QPushButton(parent=self.frame)
        self.right_purple_button.setGeometry(QtCore.QRect(967, 448, 271, 111))
        self.right_purple_button.setStyleSheet("background: transparent;  border: 0px ;\n"
"background-image: url(:/NewPref/Right Purple button.png);\n"
"background-repeat: no repeat;\n"
"background-position: center;")
        self.right_purple_button.setText("")
        self.right_purple_button.setObjectName("right_purple_button")
        self.right_cyan_button = QtWidgets.QPushButton(parent=self.frame)
        self.right_cyan_button.setGeometry(QtCore.QRect(967, 321, 269, 111))
        self.right_cyan_button.setStyleSheet("background: transparent;  border: 0px ;\n"
"background-image: url(:/NewPref/Right Cyan button.png);\n"
"background-position: center;\n"
"background-repeat: no repeat;")
        self.right_cyan_button.setText("")
        self.right_cyan_button.setObjectName("right_cyan_button")
        self.right_gray_button = QtWidgets.QPushButton(parent=self.frame)
        self.right_gray_button.setGeometry(QtCore.QRect(966, 195, 271, 111))
        self.right_gray_button.setStyleSheet("background: transparent;  border: 0px ;\n"
"background-image: url(:/NewPref/Right Gray button.png);\n"
"background-position: center;\n"
"background-repeat: no repeat;")
        self.right_gray_button.setText("")
        self.right_gray_button.setObjectName("right_gray_button")
        self.topright_pink_button = QtWidgets.QPushButton(parent=self.frame)
        self.topright_pink_button.setGeometry(QtCore.QRect(1045, 128, 191, 56))
        self.topright_pink_button.setStyleSheet("background: transparent;  border: 0px ;\n"
"background-image: url(:/NewPref/most right button copy.png);\n"
"background-position: center;\n"
"background-repeat: no repeat;")
        self.topright_pink_button.setText("")
        self.topright_pink_button.setObjectName("topright_pink_button")
        self.middle_green_button = QtWidgets.QPushButton(parent=self.frame)
        self.middle_green_button.setGeometry(QtCore.QRect(846, 128, 192, 57))
        self.middle_green_button.setStyleSheet("background: transparent;  border: 0px ;\n"
"background-image: url(:/NewPref/Middle button.png);\n"
"background-position: center;\n"
"background-repeat: no repeat;")
        self.middle_green_button.setText("")
        self.middle_green_button.setObjectName("middle_green_button")
        self.forrest_button = QtWidgets.QPushButton(parent=self.frame)
        self.forrest_button.setGeometry(QtCore.QRect(647, 24, 589, 88))
        self.forrest_button.setStyleSheet("background: transparent;  border: 0px ;\n"
"background-image: url(:/NewPref/Right forest button.png);\n"
"background-position: center;\n"
"background-repeat: no repeat;")
        self.forrest_button.setText("")
        self.forrest_button.setObjectName("forrest_button")
        self.pushButton_9 = QtWidgets.QPushButton(parent=self.frame)
        self.pushButton_9.setGeometry(QtCore.QRect(5, 140, 119, 30))
        self.pushButton_9.setStyleSheet("background: transparent;  border: 0px ;\n"
"background-image: url(:/NewPref/AllohaCallygpraphic.png);\n"
"background-position: center;\n"
"background-repeat: no repeat;")
        self.pushButton_9.setText("")
        self.pushButton_9.setObjectName("pushButton_9")
        self.left_gray_button = QtWidgets.QPushButton(parent=self.frame)
        self.left_gray_button.setGeometry(QtCore.QRect(648, 128, 191, 55))
        self.left_gray_button.setStyleSheet("background: transparent;  border: 0px ;\n"
"background-image: url(:/NewPref/left button.png);\n"
"background-position: center;\n"
"background-repeat: no repeat;")
        self.left_gray_button.setText("")
        self.left_gray_button.setObjectName("left_gray_button")
        self.right_pink_button.raise_()
        self.right_gray_button.raise_()
        self.left_gray_button.raise_()
        self.right_purple_button.raise_()
        self.right_cyan_button.raise_()
        self.topright_pink_button.raise_()
        self.middle_green_button.raise_()
        self.widget.raise_()
        self.forrest_button.raise_()
        self.pushButton_9.raise_()
        MainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "V-GPT"))


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())
Editor is loading...