-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ui_main_windows.py
188 lines (181 loc) · 11.2 KB
/
Ui_main_windows.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'd:\python\program\SecretChat - 公共发布版\main_windows.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# 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_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(800, 600)
MainWindow.setMinimumSize(QtCore.QSize(350, 350))
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.formLayout = QtWidgets.QFormLayout(self.centralwidget)
self.formLayout.setObjectName("formLayout")
self.verticalLayout_3 = QtWidgets.QVBoxLayout()
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.verticalLayout = QtWidgets.QVBoxLayout()
self.verticalLayout.setObjectName("verticalLayout")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.label_2 = QtWidgets.QLabel(self.centralwidget)
self.label_2.setObjectName("label_2")
self.horizontalLayout_3.addWidget(self.label_2)
self.lineEdit_username = QtWidgets.QLineEdit(self.centralwidget)
self.lineEdit_username.setMaximumSize(QtCore.QSize(150, 16777215))
self.lineEdit_username.setObjectName("lineEdit_username")
self.horizontalLayout_3.addWidget(self.lineEdit_username)
self.verticalLayout.addLayout(self.horizontalLayout_3)
self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.label_3 = QtWidgets.QLabel(self.centralwidget)
self.label_3.setObjectName("label_3")
self.horizontalLayout_4.addWidget(self.label_3)
self.lineEdit_password = QtWidgets.QLineEdit(self.centralwidget)
self.lineEdit_password.setMaximumSize(QtCore.QSize(150, 16777215))
self.lineEdit_password.setEchoMode(QtWidgets.QLineEdit.Password)
self.lineEdit_password.setObjectName("lineEdit_password")
self.horizontalLayout_4.addWidget(self.lineEdit_password)
self.verticalLayout.addLayout(self.horizontalLayout_4)
self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
self.pushButton_register = QtWidgets.QPushButton(self.centralwidget)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/icon/register.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.pushButton_register.setIcon(icon)
self.pushButton_register.setObjectName("pushButton_register")
self.horizontalLayout_5.addWidget(self.pushButton_register)
self.pushButton_login = QtWidgets.QPushButton(self.centralwidget)
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/icon/login.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.pushButton_login.setIcon(icon1)
self.pushButton_login.setObjectName("pushButton_login")
self.horizontalLayout_5.addWidget(self.pushButton_login)
self.verticalLayout.addLayout(self.horizontalLayout_5)
self.verticalLayout_3.addLayout(self.verticalLayout)
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_3.addItem(spacerItem)
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setObjectName("label")
self.horizontalLayout_7.addWidget(self.label)
self.comboBox_conversation = QtWidgets.QComboBox(self.centralwidget)
self.comboBox_conversation.setObjectName("comboBox_conversation")
self.horizontalLayout_7.addWidget(self.comboBox_conversation)
self.verticalLayout_2.addLayout(self.horizontalLayout_7)
self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.pushButton_refresh = QtWidgets.QPushButton(self.centralwidget)
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap(":/icon/refresh.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.pushButton_refresh.setIcon(icon2)
self.pushButton_refresh.setObjectName("pushButton_refresh")
self.horizontalLayout_6.addWidget(self.pushButton_refresh)
self.pushButton_join = QtWidgets.QPushButton(self.centralwidget)
icon3 = QtGui.QIcon()
icon3.addPixmap(QtGui.QPixmap(":/icon/join.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.pushButton_join.setIcon(icon3)
self.pushButton_join.setObjectName("pushButton_join")
self.horizontalLayout_6.addWidget(self.pushButton_join)
self.verticalLayout_2.addLayout(self.horizontalLayout_6)
self.verticalLayout_3.addLayout(self.verticalLayout_2)
spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_3.addItem(spacerItem1)
self.formLayout.setLayout(0, QtWidgets.QFormLayout.LabelRole, self.verticalLayout_3)
self.gridLayout = QtWidgets.QGridLayout()
self.gridLayout.setObjectName("gridLayout")
self.textBrowser_messsagebox = QtWidgets.QTextBrowser(self.centralwidget)
self.textBrowser_messsagebox.setFrameShadow(QtWidgets.QFrame.Sunken)
self.textBrowser_messsagebox.setReadOnly(True)
self.textBrowser_messsagebox.setObjectName("textBrowser_messsagebox")
self.gridLayout.addWidget(self.textBrowser_messsagebox, 1, 0, 1, 1)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.label_user = QtWidgets.QLabel(self.centralwidget)
self.label_user.setObjectName("label_user")
self.horizontalLayout.addWidget(self.label_user)
self.lineEdit_user = QtWidgets.QLineEdit(self.centralwidget)
self.lineEdit_user.setEnabled(True)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.lineEdit_user.sizePolicy().hasHeightForWidth())
self.lineEdit_user.setSizePolicy(sizePolicy)
self.lineEdit_user.setMaximumSize(QtCore.QSize(100, 16777215))
self.lineEdit_user.setMouseTracking(False)
self.lineEdit_user.setReadOnly(True)
self.lineEdit_user.setObjectName("lineEdit_user")
self.horizontalLayout.addWidget(self.lineEdit_user)
spacerItem2 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem2)
self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.plainTextEdit_inputbox = QtWidgets.QPlainTextEdit(self.centralwidget)
self.plainTextEdit_inputbox.setObjectName("plainTextEdit_inputbox")
self.horizontalLayout_2.addWidget(self.plainTextEdit_inputbox)
self.pushButton_send = QtWidgets.QPushButton(self.centralwidget)
icon4 = QtGui.QIcon()
icon4.addPixmap(QtGui.QPixmap(":/icon/send.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.pushButton_send.setIcon(icon4)
self.pushButton_send.setObjectName("pushButton_send")
self.horizontalLayout_2.addWidget(self.pushButton_send)
self.gridLayout.addLayout(self.horizontalLayout_2, 2, 0, 1, 1)
self.formLayout.setLayout(0, QtWidgets.QFormLayout.FieldRole, self.gridLayout)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.menuBar = QtWidgets.QMenuBar(MainWindow)
self.menuBar.setGeometry(QtCore.QRect(0, 0, 800, 26))
self.menuBar.setObjectName("menuBar")
self.menu_help = QtWidgets.QMenu(self.menuBar)
self.menu_help.setObjectName("menu_help")
MainWindow.setMenuBar(self.menuBar)
self.action_about_program = QtWidgets.QAction(MainWindow)
self.action_about_program.setObjectName("action_about_program")
self.action_about_author = QtWidgets.QAction(MainWindow)
self.action_about_author.setObjectName("action_about_author")
self.action_create_conversation = QtWidgets.QAction(MainWindow)
self.action_create_conversation.setObjectName("action_create_conversation")
self.action_change_user_name = QtWidgets.QAction(MainWindow)
self.action_change_user_name.setObjectName("action_change_user_name")
self.action_delete_user = QtWidgets.QAction(MainWindow)
self.action_delete_user.setObjectName("action_delete_user")
self.action_change_password = QtWidgets.QAction(MainWindow)
self.action_change_password.setObjectName("action_change_password")
self.action_exit = QtWidgets.QAction(MainWindow)
self.action_exit.setObjectName("action_exit")
self.menu_help.addAction(self.action_about_program)
self.menu_help.addAction(self.action_about_author)
self.menuBar.addAction(self.menu_help.menuAction())
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "秘密聊天室"))
self.label_2.setText(_translate("MainWindow", "用户名"))
self.label_3.setText(_translate("MainWindow", "密码"))
self.pushButton_register.setText(_translate("MainWindow", "注册"))
self.pushButton_login.setText(_translate("MainWindow", "登陆"))
self.label.setText(_translate("MainWindow", "聊天室:"))
self.pushButton_refresh.setText(_translate("MainWindow", "刷新"))
self.pushButton_join.setText(_translate("MainWindow", "加入"))
self.label_user.setText(_translate("MainWindow", "登陆用户:"))
self.pushButton_send.setText(_translate("MainWindow", "发送"))
self.menu_help.setTitle(_translate("MainWindow", "帮助"))
self.action_about_program.setText(_translate("MainWindow", "关于本程序"))
self.action_about_program.setIconText(_translate("MainWindow", "关于本程序"))
self.action_about_author.setText(_translate("MainWindow", "关于作者"))
self.action_create_conversation.setText(_translate("MainWindow", "创建聊天室"))
self.action_change_user_name.setText(_translate("MainWindow", "用户更名"))
self.action_delete_user.setText(_translate("MainWindow", "删除用户"))
self.action_change_password.setText(_translate("MainWindow", "更改密码"))
self.action_exit.setText(_translate("MainWindow", "退出"))
import icon_rc