-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTestDemoSecond.py
98 lines (94 loc) · 4.26 KB
/
TestDemoSecond.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
from PyQt6 import QtCore, QtGui, QtWidgets
class Ui_SecondWindow(object):
def setupUiSecondWindow(self, SecondWindow):
SecondWindow.setObjectName("SecondWindow")
SecondWindow.resize(900, 650)
SecondWindow.setStyleSheet("#sidemenu {\n"
"background-color: #1b705b\n"
"}\n"
"\n"
"#sidemenu QPushButton{\n"
"border: none;\n"
"color: #fff;\n"
"text-align: left;\n"
"padding: 5px;\n"
"\n"
"}\n"
"\n"
"\n"
"#newconversation QFrame:hover{\n"
"background-color: #27a182;\n"
"color: black;\n"
"}\n"
"\n"
"#newconversation QFrame{\n"
"border: 2px solid #27a182;\n"
"}\n"
"#newconversation QFrame{\n"
"border-radius: 5px;\n"
"\n"
"}\n"
"#chatlist{\n"
"background: #1b705b;\n"
"border:noe;\n"
"}\n"
"")
self.centralwidget = QtWidgets.QWidget(parent=SecondWindow)
self.centralwidget.setObjectName("centralwidget")
self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.centralwidget)
self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_6.setSpacing(0)
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.sidemenu = QtWidgets.QWidget(parent=self.centralwidget)
self.sidemenu.setMaximumSize(QtCore.QSize(220, 16777215))
self.sidemenu.setObjectName("sidemenu")
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.sidemenu)
self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_4.setSpacing(0)
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.newconversation = QtWidgets.QFrame(parent=self.sidemenu)
self.newconversation.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
self.newconversation.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
self.newconversation.setObjectName("newconversation")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.newconversation)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.frame = QtWidgets.QFrame(parent=self.newconversation)
self.frame.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
self.frame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
self.frame.setObjectName("frame")
self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.frame)
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
self.pushButton = QtWidgets.QPushButton(parent=self.frame)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/icons/plus.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
self.pushButton.setIcon(icon)
self.pushButton.setIconSize(QtCore.QSize(18, 18))
self.pushButton.setObjectName("pushButton")
self.horizontalLayout_5.addWidget(self.pushButton)
self.verticalLayout_3.addWidget(self.frame)
self.verticalLayout_4.addWidget(self.newconversation)
self.frame_2 = QtWidgets.QFrame(parent=self.sidemenu)
self.frame_2.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
self.frame_2.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
self.frame_2.setObjectName("frame_2")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.frame_2)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.chatlist = QtWidgets.QListView(parent=self.frame_2)
self.chatlist.setObjectName("chatlist")
self.verticalLayout_2.addWidget(self.chatlist)
self.verticalLayout_4.addWidget(self.frame_2)
self.horizontalLayout_6.addWidget(self.sidemenu)
self.SecondWindow = QtWidgets.QWidget(parent=self.centralwidget)
self.SecondWindow.setObjectName("SecondWindow")
self.output = QtWidgets.QLabel(parent=self.SecondWindow)
self.output.setGeometry(QtCore.QRect(70, 260, 121, 16))
self.output.setObjectName("output")
self.horizontalLayout_6.addWidget(self.SecondWindow)
SecondWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(SecondWindow)
QtCore.QMetaObject.connectSlotsByName(SecondWindow)
def retranslateUi(self, SecondWindow):
_translate = QtCore.QCoreApplication.translate
SecondWindow.setWindowTitle(_translate("SecondWindow", "SecondWindow"))
self.pushButton.setText(_translate("SecondWindow", "New Conversation"))
self.output.setText(_translate("SecondWindow", "TextLabel"))