# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'chatUi.ui' # # Created by: PyQt5 UI code generator 5.15.7 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(878, 720) self.horizontalLayout = QtWidgets.QHBoxLayout(Form) self.horizontalLayout.setContentsMargins(0, 0, 0, 0) self.horizontalLayout.setSpacing(0) self.horizontalLayout.setObjectName("horizontalLayout") self.scrollArea_2 = QtWidgets.QScrollArea(Form) self.scrollArea_2.setEnabled(True) self.scrollArea_2.setMaximumSize(QtCore.QSize(325, 150000)) self.scrollArea_2.setAutoFillBackground(False) self.scrollArea_2.setFrameShape(QtWidgets.QFrame.WinPanel) self.scrollArea_2.setFrameShadow(QtWidgets.QFrame.Raised) self.scrollArea_2.setMidLineWidth(0) self.scrollArea_2.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) self.scrollArea_2.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) self.scrollArea_2.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContentsOnFirstShow) self.scrollArea_2.setWidgetResizable(False) self.scrollArea_2.setObjectName("scrollArea_2") self.scrollAreaWidgetContents_2 = QtWidgets.QWidget() self.scrollAreaWidgetContents_2.setGeometry(QtCore.QRect(0, 0, 300, 12000)) self.scrollAreaWidgetContents_2.setObjectName("scrollAreaWidgetContents_2") self.pushButton_3 = QtWidgets.QPushButton(self.scrollAreaWidgetContents_2) self.pushButton_3.setGeometry(QtCore.QRect(0, 0, 300, 80)) self.pushButton_3.setLayoutDirection(QtCore.Qt.LeftToRight) self.pushButton_3.setAutoFillBackground(False) self.pushButton_3.setText("") self.pushButton_3.setIconSize(QtCore.QSize(80, 80)) self.pushButton_3.setObjectName("pushButton_3") self.label_2 = QtWidgets.QLabel(self.scrollAreaWidgetContents_2) self.label_2.setGeometry(QtCore.QRect(220, 10, 72, 15)) self.label_2.setObjectName("label_2") self.scrollArea_2.setWidget(self.scrollAreaWidgetContents_2) self.horizontalLayout.addWidget(self.scrollArea_2) self.frame_2 = QtWidgets.QFrame(Form) self.frame_2.setMinimumSize(QtCore.QSize(500, 500)) self.frame_2.setStyleSheet("background-color: #F5F5F5;") self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel) self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised) self.frame_2.setObjectName("frame_2") self.verticalLayout = QtWidgets.QVBoxLayout(self.frame_2) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setSpacing(0) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_remark_2 = QtWidgets.QLabel(self.frame_2) font = QtGui.QFont() font.setPointSize(12) self.label_remark_2.setFont(font) self.label_remark_2.setText("") self.label_remark_2.setObjectName("label_remark_2") self.horizontalLayout_3.addWidget(self.label_remark_2) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem) self.toolButton_2 = QtWidgets.QToolButton(self.frame_2) self.toolButton_2.setObjectName("toolButton_2") self.horizontalLayout_3.addWidget(self.toolButton_2) self.verticalLayout.addLayout(self.horizontalLayout_3) self.line_5 = QtWidgets.QFrame(self.frame_2) self.line_5.setFrameShape(QtWidgets.QFrame.HLine) self.line_5.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_5.setObjectName("line_5") self.verticalLayout.addWidget(self.line_5) self.message_2 = QtWidgets.QTextBrowser(self.frame_2) self.message_2.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu) self.message_2.setStyleSheet("background-color: #F5F5F5;") self.message_2.setObjectName("message_2") self.verticalLayout.addWidget(self.message_2) self.line_6 = QtWidgets.QFrame(self.frame_2) self.line_6.setFrameShape(QtWidgets.QFrame.HLine) self.line_6.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_6.setObjectName("line_6") self.verticalLayout.addWidget(self.line_6) self.textEdit_2 = QtWidgets.QTextEdit(self.frame_2) font = QtGui.QFont() font.setPointSize(15) self.textEdit_2.setFont(font) self.textEdit_2.setAutoFillBackground(False) self.textEdit_2.setStyleSheet("background-color: #F5F5F5;") self.textEdit_2.setFrameShape(QtWidgets.QFrame.NoFrame) self.textEdit_2.setOverwriteMode(False) self.textEdit_2.setTabStopWidth(80) self.textEdit_2.setAcceptRichText(True) self.textEdit_2.setCursorWidth(1) self.textEdit_2.setTextInteractionFlags(QtCore.Qt.TextEditorInteraction) self.textEdit_2.setObjectName("textEdit_2") self.verticalLayout.addWidget(self.textEdit_2) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem1) self.btn_sendMsg_2 = QtWidgets.QPushButton(self.frame_2) font = QtGui.QFont() font.setFamily("黑体") font.setPointSize(15) font.setBold(False) font.setWeight(50) self.btn_sendMsg_2.setFont(font) self.btn_sendMsg_2.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor)) self.btn_sendMsg_2.setMouseTracking(False) self.btn_sendMsg_2.setAutoFillBackground(False) self.btn_sendMsg_2.setStyleSheet("QPushButton {\n" " background-color:rgb(233,233,233);\n" " padding: 10px;\n" " color:rgb(5,180,104);}\n" " QPushButton:hover{\n" " background-color:rgb(198,198,198)}\n" " ") self.btn_sendMsg_2.setIconSize(QtCore.QSize(40, 40)) self.btn_sendMsg_2.setCheckable(False) self.btn_sendMsg_2.setAutoDefault(True) self.btn_sendMsg_2.setObjectName("btn_sendMsg_2") self.horizontalLayout_2.addWidget(self.btn_sendMsg_2) self.horizontalLayout_2.setStretch(0, 7) self.horizontalLayout_2.setStretch(1, 2) self.verticalLayout.addLayout(self.horizontalLayout_2) self.verticalLayout.setStretch(0, 2) self.verticalLayout.setStretch(1, 2) self.verticalLayout.setStretch(2, 60) self.verticalLayout.setStretch(3, 2) self.verticalLayout.setStretch(4, 2) self.verticalLayout.setStretch(5, 1) self.horizontalLayout.addWidget(self.frame_2) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): _translate = QtCore.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Form")) self.label_2.setText(_translate("Form", "TextLabel")) self.toolButton_2.setText(_translate("Form", "...")) self.textEdit_2.setHtml(_translate("Form", "\n" "
\n" "\n" "
")) self.btn_sendMsg_2.setText(_translate("Form", "发送"))