|
| 1 | +# Form implementation generated from reading ui file 'c:\Users\MD. SHAMIM\Documents\GitHub\Python-GUI-PyQt6\TestDemo-2\home_window2.ui' |
| 2 | +# |
| 3 | +# Created by: PyQt6 UI code generator 6.4.2 |
| 4 | +# |
| 5 | +# WARNING: Any manual changes made to this file will be lost when pyuic6 is |
| 6 | +# run again. Do not edit this file unless you know what you are doing. |
| 7 | + |
| 8 | + |
| 9 | +from PyQt6 import QtCore, QtGui, QtWidgets |
| 10 | + |
| 11 | + |
| 12 | +class Ui_Form(object): |
| 13 | + def setupUi(self, Form): |
| 14 | + Form.setObjectName("Form") |
| 15 | + Form.resize(765, 607) |
| 16 | + Form.setStyleSheet("") |
| 17 | + self.gridLayout_3 = QtWidgets.QGridLayout(Form) |
| 18 | + self.gridLayout_3.setObjectName("gridLayout_3") |
| 19 | + self.label_6 = QtWidgets.QLabel(parent=Form) |
| 20 | + self.label_6.setMaximumSize(QtCore.QSize(16777215, 100)) |
| 21 | + font = QtGui.QFont() |
| 22 | + font.setPointSize(20) |
| 23 | + font.setBold(True) |
| 24 | + self.label_6.setFont(font) |
| 25 | + self.label_6.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) |
| 26 | + self.label_6.setObjectName("label_6") |
| 27 | + self.gridLayout_3.addWidget(self.label_6, 0, 0, 1, 1) |
| 28 | + self.frame = QtWidgets.QFrame(parent=Form) |
| 29 | + self.frame.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel) |
| 30 | + self.frame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised) |
| 31 | + self.frame.setObjectName("frame") |
| 32 | + self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame) |
| 33 | + self.horizontalLayout.setObjectName("horizontalLayout") |
| 34 | + self.verticalLayout_5 = QtWidgets.QVBoxLayout() |
| 35 | + self.verticalLayout_5.setSpacing(10) |
| 36 | + self.verticalLayout_5.setObjectName("verticalLayout_5") |
| 37 | + self.frame_8 = QtWidgets.QFrame(parent=self.frame) |
| 38 | + self.frame_8.setMaximumSize(QtCore.QSize(230, 16777215)) |
| 39 | + self.frame_8.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel) |
| 40 | + self.frame_8.setFrameShadow(QtWidgets.QFrame.Shadow.Raised) |
| 41 | + self.frame_8.setObjectName("frame_8") |
| 42 | + self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.frame_8) |
| 43 | + self.horizontalLayout_9.setObjectName("horizontalLayout_9") |
| 44 | + spacerItem = QtWidgets.QSpacerItem(53, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) |
| 45 | + self.horizontalLayout_9.addItem(spacerItem) |
| 46 | + self.toolButton_2 = QtWidgets.QToolButton(parent=self.frame_8) |
| 47 | + font = QtGui.QFont() |
| 48 | + font.setPointSize(11) |
| 49 | + self.toolButton_2.setFont(font) |
| 50 | + icon = QtGui.QIcon() |
| 51 | + icon.addPixmap(QtGui.QPixmap(":/icons/icons/lightning-charge.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) |
| 52 | + self.toolButton_2.setIcon(icon) |
| 53 | + self.toolButton_2.setIconSize(QtCore.QSize(20, 20)) |
| 54 | + self.toolButton_2.setToolButtonStyle(QtCore.Qt.ToolButtonStyle.ToolButtonTextUnderIcon) |
| 55 | + self.toolButton_2.setAutoRaise(True) |
| 56 | + self.toolButton_2.setObjectName("toolButton_2") |
| 57 | + self.horizontalLayout_9.addWidget(self.toolButton_2) |
| 58 | + spacerItem1 = QtWidgets.QSpacerItem(52, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) |
| 59 | + self.horizontalLayout_9.addItem(spacerItem1) |
| 60 | + self.verticalLayout_5.addWidget(self.frame_8) |
| 61 | + self.label_12 = QtWidgets.QLabel(parent=self.frame) |
| 62 | + font = QtGui.QFont() |
| 63 | + font.setPointSize(10) |
| 64 | + self.label_12.setFont(font) |
| 65 | + self.label_12.setStyleSheet("background: #f7f7f8;\n" |
| 66 | +"border-radius: 8px;\n" |
| 67 | +"padding: 10px;") |
| 68 | + self.label_12.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) |
| 69 | + self.label_12.setWordWrap(True) |
| 70 | + self.label_12.setObjectName("label_12") |
| 71 | + self.verticalLayout_5.addWidget(self.label_12) |
| 72 | + self.label_11 = QtWidgets.QLabel(parent=self.frame) |
| 73 | + font = QtGui.QFont() |
| 74 | + font.setPointSize(10) |
| 75 | + self.label_11.setFont(font) |
| 76 | + self.label_11.setStyleSheet("background: #f7f7f8;\n" |
| 77 | +"border-radius: 8px;\n" |
| 78 | +"padding: 10px;") |
| 79 | + self.label_11.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) |
| 80 | + self.label_11.setWordWrap(True) |
| 81 | + self.label_11.setObjectName("label_11") |
| 82 | + self.verticalLayout_5.addWidget(self.label_11) |
| 83 | + self.label_10 = QtWidgets.QLabel(parent=self.frame) |
| 84 | + font = QtGui.QFont() |
| 85 | + font.setPointSize(10) |
| 86 | + self.label_10.setFont(font) |
| 87 | + self.label_10.setStyleSheet("background: #f7f7f8;\n" |
| 88 | +"border-radius: 8px;\n" |
| 89 | +"padding: 10px;") |
| 90 | + self.label_10.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) |
| 91 | + self.label_10.setWordWrap(True) |
| 92 | + self.label_10.setObjectName("label_10") |
| 93 | + self.verticalLayout_5.addWidget(self.label_10) |
| 94 | + self.horizontalLayout.addLayout(self.verticalLayout_5) |
| 95 | + self.verticalLayout_6 = QtWidgets.QVBoxLayout() |
| 96 | + self.verticalLayout_6.setSpacing(10) |
| 97 | + self.verticalLayout_6.setObjectName("verticalLayout_6") |
| 98 | + self.frame_9 = QtWidgets.QFrame(parent=self.frame) |
| 99 | + self.frame_9.setMaximumSize(QtCore.QSize(230, 16777215)) |
| 100 | + self.frame_9.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel) |
| 101 | + self.frame_9.setFrameShadow(QtWidgets.QFrame.Shadow.Raised) |
| 102 | + self.frame_9.setObjectName("frame_9") |
| 103 | + self.horizontalLayout_10 = QtWidgets.QHBoxLayout(self.frame_9) |
| 104 | + self.horizontalLayout_10.setObjectName("horizontalLayout_10") |
| 105 | + spacerItem2 = QtWidgets.QSpacerItem(55, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) |
| 106 | + self.horizontalLayout_10.addItem(spacerItem2) |
| 107 | + self.toolButton_3 = QtWidgets.QToolButton(parent=self.frame_9) |
| 108 | + font = QtGui.QFont() |
| 109 | + font.setPointSize(11) |
| 110 | + self.toolButton_3.setFont(font) |
| 111 | + icon1 = QtGui.QIcon() |
| 112 | + icon1.addPixmap(QtGui.QPixmap(":/icons/icons/exclamation-triangle.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) |
| 113 | + self.toolButton_3.setIcon(icon1) |
| 114 | + self.toolButton_3.setIconSize(QtCore.QSize(20, 20)) |
| 115 | + self.toolButton_3.setToolButtonStyle(QtCore.Qt.ToolButtonStyle.ToolButtonTextUnderIcon) |
| 116 | + self.toolButton_3.setAutoRaise(True) |
| 117 | + self.toolButton_3.setObjectName("toolButton_3") |
| 118 | + self.horizontalLayout_10.addWidget(self.toolButton_3) |
| 119 | + spacerItem3 = QtWidgets.QSpacerItem(55, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) |
| 120 | + self.horizontalLayout_10.addItem(spacerItem3) |
| 121 | + self.verticalLayout_6.addWidget(self.frame_9) |
| 122 | + self.label_15 = QtWidgets.QLabel(parent=self.frame) |
| 123 | + font = QtGui.QFont() |
| 124 | + font.setPointSize(10) |
| 125 | + self.label_15.setFont(font) |
| 126 | + self.label_15.setStyleSheet("background: #f7f7f8;\n" |
| 127 | +"border-radius: 8px;\n" |
| 128 | +"padding: 10px;") |
| 129 | + self.label_15.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) |
| 130 | + self.label_15.setWordWrap(True) |
| 131 | + self.label_15.setObjectName("label_15") |
| 132 | + self.verticalLayout_6.addWidget(self.label_15) |
| 133 | + self.label_14 = QtWidgets.QLabel(parent=self.frame) |
| 134 | + font = QtGui.QFont() |
| 135 | + font.setPointSize(10) |
| 136 | + self.label_14.setFont(font) |
| 137 | + self.label_14.setStyleSheet("background: #f7f7f8;\n" |
| 138 | +"border-radius: 8px;\n" |
| 139 | +"padding: 10px;") |
| 140 | + self.label_14.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) |
| 141 | + self.label_14.setWordWrap(True) |
| 142 | + self.label_14.setObjectName("label_14") |
| 143 | + self.verticalLayout_6.addWidget(self.label_14) |
| 144 | + self.label_13 = QtWidgets.QLabel(parent=self.frame) |
| 145 | + font = QtGui.QFont() |
| 146 | + font.setPointSize(10) |
| 147 | + self.label_13.setFont(font) |
| 148 | + self.label_13.setStyleSheet("background: #f7f7f8;\n" |
| 149 | +"border-radius: 8px;\n" |
| 150 | +"padding: 10px;") |
| 151 | + self.label_13.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) |
| 152 | + self.label_13.setWordWrap(True) |
| 153 | + self.label_13.setObjectName("label_13") |
| 154 | + self.verticalLayout_6.addWidget(self.label_13) |
| 155 | + self.horizontalLayout.addLayout(self.verticalLayout_6) |
| 156 | + self.verticalLayout_4 = QtWidgets.QVBoxLayout() |
| 157 | + self.verticalLayout_4.setSpacing(10) |
| 158 | + self.verticalLayout_4.setObjectName("verticalLayout_4") |
| 159 | + self.frame_2 = QtWidgets.QFrame(parent=self.frame) |
| 160 | + self.frame_2.setMaximumSize(QtCore.QSize(230, 16777215)) |
| 161 | + self.frame_2.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel) |
| 162 | + self.frame_2.setFrameShadow(QtWidgets.QFrame.Shadow.Raised) |
| 163 | + self.frame_2.setObjectName("frame_2") |
| 164 | + self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.frame_2) |
| 165 | + self.horizontalLayout_4.setObjectName("horizontalLayout_4") |
| 166 | + spacerItem4 = QtWidgets.QSpacerItem(60, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) |
| 167 | + self.horizontalLayout_4.addItem(spacerItem4) |
| 168 | + self.toolButton = QtWidgets.QToolButton(parent=self.frame_2) |
| 169 | + font = QtGui.QFont() |
| 170 | + font.setPointSize(11) |
| 171 | + self.toolButton.setFont(font) |
| 172 | + icon2 = QtGui.QIcon() |
| 173 | + icon2.addPixmap(QtGui.QPixmap(":/icons/icons/brightness-high.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) |
| 174 | + self.toolButton.setIcon(icon2) |
| 175 | + self.toolButton.setIconSize(QtCore.QSize(25, 25)) |
| 176 | + self.toolButton.setToolButtonStyle(QtCore.Qt.ToolButtonStyle.ToolButtonTextUnderIcon) |
| 177 | + self.toolButton.setAutoRaise(True) |
| 178 | + self.toolButton.setObjectName("toolButton") |
| 179 | + self.horizontalLayout_4.addWidget(self.toolButton) |
| 180 | + spacerItem5 = QtWidgets.QSpacerItem(60, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) |
| 181 | + self.horizontalLayout_4.addItem(spacerItem5) |
| 182 | + self.verticalLayout_4.addWidget(self.frame_2) |
| 183 | + self.label_7 = QtWidgets.QLabel(parent=self.frame) |
| 184 | + font = QtGui.QFont() |
| 185 | + font.setPointSize(10) |
| 186 | + self.label_7.setFont(font) |
| 187 | + self.label_7.setStyleSheet("background: #f7f7f8;\n" |
| 188 | +"border-radius: 8px;\n" |
| 189 | +"padding: 10px;") |
| 190 | + self.label_7.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) |
| 191 | + self.label_7.setWordWrap(True) |
| 192 | + self.label_7.setObjectName("label_7") |
| 193 | + self.verticalLayout_4.addWidget(self.label_7) |
| 194 | + self.label_8 = QtWidgets.QLabel(parent=self.frame) |
| 195 | + font = QtGui.QFont() |
| 196 | + font.setPointSize(10) |
| 197 | + self.label_8.setFont(font) |
| 198 | + self.label_8.setStyleSheet("background: #f7f7f8;\n" |
| 199 | +"border-radius: 8px;\n" |
| 200 | +"padding: 10px;") |
| 201 | + self.label_8.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) |
| 202 | + self.label_8.setWordWrap(True) |
| 203 | + self.label_8.setObjectName("label_8") |
| 204 | + self.verticalLayout_4.addWidget(self.label_8) |
| 205 | + self.label_9 = QtWidgets.QLabel(parent=self.frame) |
| 206 | + font = QtGui.QFont() |
| 207 | + font.setPointSize(10) |
| 208 | + self.label_9.setFont(font) |
| 209 | + self.label_9.setStyleSheet("background: #f7f7f8;\n" |
| 210 | +"border-radius: 8px;\n" |
| 211 | +"padding: 10px;") |
| 212 | + self.label_9.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) |
| 213 | + self.label_9.setWordWrap(True) |
| 214 | + self.label_9.setObjectName("label_9") |
| 215 | + self.verticalLayout_4.addWidget(self.label_9) |
| 216 | + self.horizontalLayout.addLayout(self.verticalLayout_4) |
| 217 | + self.gridLayout_3.addWidget(self.frame, 1, 0, 1, 1) |
| 218 | + self.frame_3 = QtWidgets.QFrame(parent=Form) |
| 219 | + self.frame_3.setMaximumSize(QtCore.QSize(16777215, 100)) |
| 220 | + self.frame_3.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel) |
| 221 | + self.frame_3.setFrameShadow(QtWidgets.QFrame.Shadow.Raised) |
| 222 | + self.frame_3.setObjectName("frame_3") |
| 223 | + self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame_3) |
| 224 | + self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
| 225 | + self.message_area = QtWidgets.QWidget(parent=self.frame_3) |
| 226 | + self.message_area.setMaximumSize(QtCore.QSize(16777215, 100)) |
| 227 | + self.message_area.setObjectName("message_area") |
| 228 | + self.gridLayout_2 = QtWidgets.QGridLayout(self.message_area) |
| 229 | + self.gridLayout_2.setContentsMargins(0, 0, 0, 0) |
| 230 | + self.gridLayout_2.setObjectName("gridLayout_2") |
| 231 | + self.frame_11 = QtWidgets.QFrame(parent=self.message_area) |
| 232 | + self.frame_11.setMinimumSize(QtCore.QSize(0, 0)) |
| 233 | + self.frame_11.setMaximumSize(QtCore.QSize(16777215, 100)) |
| 234 | + self.frame_11.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel) |
| 235 | + self.frame_11.setFrameShadow(QtWidgets.QFrame.Shadow.Raised) |
| 236 | + self.frame_11.setObjectName("frame_11") |
| 237 | + self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.frame_11) |
| 238 | + self.horizontalLayout_3.setContentsMargins(-1, -1, -1, 16) |
| 239 | + self.horizontalLayout_3.setObjectName("horizontalLayout_3") |
| 240 | + spacerItem6 = QtWidgets.QSpacerItem(30, 20, QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Minimum) |
| 241 | + self.horizontalLayout_3.addItem(spacerItem6) |
| 242 | + self.input_frame = QtWidgets.QFrame(parent=self.frame_11) |
| 243 | + self.input_frame.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel) |
| 244 | + self.input_frame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised) |
| 245 | + self.input_frame.setObjectName("input_frame") |
| 246 | + self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.input_frame) |
| 247 | + self.horizontalLayout_8.setContentsMargins(0, 0, 7, 0) |
| 248 | + self.horizontalLayout_8.setSpacing(0) |
| 249 | + self.horizontalLayout_8.setObjectName("horizontalLayout_8") |
| 250 | + self.input_textEdit = QtWidgets.QTextEdit(parent=self.input_frame) |
| 251 | + self.input_textEdit.setMinimumSize(QtCore.QSize(0, 50)) |
| 252 | + font = QtGui.QFont() |
| 253 | + font.setPointSize(11) |
| 254 | + self.input_textEdit.setFont(font) |
| 255 | + self.input_textEdit.setObjectName("input_textEdit") |
| 256 | + self.horizontalLayout_8.addWidget(self.input_textEdit) |
| 257 | + self.send_btn = QtWidgets.QPushButton(parent=self.input_frame) |
| 258 | + self.send_btn.setMinimumSize(QtCore.QSize(0, 0)) |
| 259 | + self.send_btn.setMaximumSize(QtCore.QSize(16777215, 16777215)) |
| 260 | + self.send_btn.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor)) |
| 261 | + self.send_btn.setText("") |
| 262 | + icon3 = QtGui.QIcon() |
| 263 | + icon3.addPixmap(QtGui.QPixmap(":/icons/send-message (2).png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) |
| 264 | + self.send_btn.setIcon(icon3) |
| 265 | + self.send_btn.setIconSize(QtCore.QSize(18, 18)) |
| 266 | + self.send_btn.setObjectName("send_btn") |
| 267 | + self.horizontalLayout_8.addWidget(self.send_btn) |
| 268 | + self.horizontalLayout_3.addWidget(self.input_frame) |
| 269 | + spacerItem7 = QtWidgets.QSpacerItem(30, 20, QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Minimum) |
| 270 | + self.horizontalLayout_3.addItem(spacerItem7) |
| 271 | + self.gridLayout_2.addWidget(self.frame_11, 0, 0, 1, 1) |
| 272 | + self.horizontalLayout_2.addWidget(self.message_area) |
| 273 | + self.gridLayout_3.addWidget(self.frame_3, 2, 0, 1, 1) |
| 274 | + |
| 275 | + self.retranslateUi(Form) |
| 276 | + QtCore.QMetaObject.connectSlotsByName(Form) |
| 277 | + |
| 278 | + def retranslateUi(self, Form): |
| 279 | + _translate = QtCore.QCoreApplication.translate |
| 280 | + Form.setWindowTitle(_translate("Form", "Form")) |
| 281 | + self.label_6.setText(_translate("Form", "ChatGPT")) |
| 282 | + self.toolButton_2.setText(_translate("Form", "Capabilities")) |
| 283 | + self.label_12.setText(_translate("Form", "Remembers what user said earlier in the conversation")) |
| 284 | + self.label_11.setText(_translate("Form", "Allows user to provide follow-up corrections")) |
| 285 | + self.label_10.setText(_translate("Form", "Trained to decline inappropriate requests")) |
| 286 | + self.toolButton_3.setText(_translate("Form", "Limitations")) |
| 287 | + self.label_15.setText(_translate("Form", "May occasionally generate incorrect information")) |
| 288 | + self.label_14.setText(_translate("Form", "May occasionally produce harmful instructions or biased content")) |
| 289 | + self.label_13.setText(_translate("Form", "Limited knowledge of world and events after 2021")) |
| 290 | + self.toolButton.setText(_translate("Form", "Examples")) |
| 291 | + self.label_7.setText(_translate("Form", "\"Explain quantum computing in simple terms\" →")) |
| 292 | + self.label_8.setText(_translate("Form", "\"Got any creative ideas for a 10 year old’s birthday?\" →")) |
| 293 | + self.label_9.setText(_translate("Form", "\"How do I make an HTTP request in Javascript?\" →")) |
| 294 | + self.input_textEdit.setPlaceholderText(_translate("Form", "Send a message")) |
0 commit comments