Skip to content

Commit 6e8d901

Browse files
committed
Input & Output Widget modify
1 parent ebe82c6 commit 6e8d901

12 files changed

+254
-195
lines changed
0 Bytes
Binary file not shown.
-843 Bytes
Binary file not shown.
-17 Bytes
Binary file not shown.
Binary file not shown.

TestDemo-2/ai_chat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#---------------Open Ai--------------------
1+
# # ---------------Open Ai--------------------
22

33
# import openai
4-
# api_key = 'key'
4+
# api_key = 'k-LNh43Eg1dYYujQtrBa78T3BlbkFJ1iU7jytfJdPD4rz2eBY'
55
# openai.api_key = api_key
66

77
# def get_response(input_str, system_message=""):

TestDemo-2/datas/data.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

TestDemo-2/input_widget.py

Lines changed: 41 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Form implementation generated from reading ui file 'c:\Users\MD. SHAMIM\Documents\GitHub\Python-GUI-PyQt6\TestDemo-2\input_widget.ui'
22
#
3-
# Created by: PyQt6 UI code generator 6.4.2
3+
# Created by: PyQt6 UI code generator 6.5.2
44
#
55
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
66
# run again. Do not edit this file unless you know what you are doing.
@@ -12,33 +12,38 @@
1212
class Ui_Form(object):
1313
def setupUi(self, Form):
1414
Form.setObjectName("Form")
15-
Form.resize(784, 222)
15+
Form.resize(898, 199)
1616
Form.setStyleSheet("#Form{\n"
1717
"padding-top:5px;\n"
1818
"padding-bottom: 5px;\n"
1919
"}")
20-
self.gridLayout_2 = QtWidgets.QGridLayout(Form)
21-
self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
22-
self.gridLayout_2.setVerticalSpacing(6)
23-
self.gridLayout_2.setObjectName("gridLayout_2")
20+
self.gridLayout_4 = QtWidgets.QGridLayout(Form)
21+
self.gridLayout_4.setContentsMargins(0, 0, 0, 0)
22+
self.gridLayout_4.setSpacing(0)
23+
self.gridLayout_4.setObjectName("gridLayout_4")
2424
self.frame = QtWidgets.QFrame(parent=Form)
25-
self.frame.setStyleSheet("background: #fff;\n"
25+
self.frame.setStyleSheet("\n"
2626
"")
2727
self.frame.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
2828
self.frame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
2929
self.frame.setObjectName("frame")
30-
self.gridLayout = QtWidgets.QGridLayout(self.frame)
31-
self.gridLayout.setContentsMargins(0, 0, 0, 0)
32-
self.gridLayout.setSpacing(6)
33-
self.gridLayout.setObjectName("gridLayout")
34-
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Minimum)
35-
self.gridLayout.addItem(spacerItem, 0, 0, 1, 1)
36-
self.frame_2 = QtWidgets.QFrame(parent=self.frame)
30+
self.gridLayout_5 = QtWidgets.QGridLayout(self.frame)
31+
self.gridLayout_5.setObjectName("gridLayout_5")
32+
self.frame_4 = QtWidgets.QFrame(parent=self.frame)
33+
self.frame_4.setStyleSheet("background: #fff;\n"
34+
"border-radius: 10px;\n"
35+
"border: none;\n"
36+
"")
37+
self.frame_4.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
38+
self.frame_4.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
39+
self.frame_4.setObjectName("frame_4")
40+
self.gridLayout_2 = QtWidgets.QGridLayout(self.frame_4)
41+
self.gridLayout_2.setObjectName("gridLayout_2")
42+
self.frame_2 = QtWidgets.QFrame(parent=self.frame_4)
3743
self.frame_2.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
3844
self.frame_2.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
3945
self.frame_2.setObjectName("frame_2")
4046
self.gridLayout_3 = QtWidgets.QGridLayout(self.frame_2)
41-
self.gridLayout_3.setContentsMargins(0, 0, 0, 0)
4247
self.gridLayout_3.setObjectName("gridLayout_3")
4348
self.label = QtWidgets.QLabel(parent=self.frame_2)
4449
self.label.setMinimumSize(QtCore.QSize(40, 40))
@@ -48,10 +53,16 @@ def setupUi(self, Form):
4853
self.label.setScaledContents(True)
4954
self.label.setObjectName("label")
5055
self.gridLayout_3.addWidget(self.label, 0, 0, 1, 1)
51-
spacerItem1 = QtWidgets.QSpacerItem(20, 0, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
52-
self.gridLayout_3.addItem(spacerItem1, 1, 0, 1, 1)
53-
self.gridLayout.addWidget(self.frame_2, 0, 1, 1, 1)
54-
self.label_2 = QtWidgets.QLabel(parent=self.frame)
56+
spacerItem = QtWidgets.QSpacerItem(20, 0, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
57+
self.gridLayout_3.addItem(spacerItem, 1, 0, 1, 1)
58+
self.gridLayout_2.addWidget(self.frame_2, 0, 0, 1, 1)
59+
self.frame_3 = QtWidgets.QFrame(parent=self.frame_4)
60+
self.frame_3.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
61+
self.frame_3.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
62+
self.frame_3.setObjectName("frame_3")
63+
self.gridLayout = QtWidgets.QGridLayout(self.frame_3)
64+
self.gridLayout.setObjectName("gridLayout")
65+
self.label_2 = QtWidgets.QLabel(parent=self.frame_3)
5566
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
5667
sizePolicy.setHorizontalStretch(0)
5768
sizePolicy.setVerticalStretch(0)
@@ -62,19 +73,25 @@ def setupUi(self, Form):
6273
font.setPointSize(11)
6374
self.label_2.setFont(font)
6475
self.label_2.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.IBeamCursor))
76+
self.label_2.setText("")
6577
self.label_2.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignTop)
6678
self.label_2.setWordWrap(True)
6779
self.label_2.setTextInteractionFlags(QtCore.Qt.TextInteractionFlag.LinksAccessibleByKeyboard|QtCore.Qt.TextInteractionFlag.LinksAccessibleByMouse|QtCore.Qt.TextInteractionFlag.TextBrowserInteraction|QtCore.Qt.TextInteractionFlag.TextSelectableByKeyboard|QtCore.Qt.TextInteractionFlag.TextSelectableByMouse)
6880
self.label_2.setObjectName("label_2")
69-
self.gridLayout.addWidget(self.label_2, 0, 2, 1, 1)
70-
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Minimum)
71-
self.gridLayout.addItem(spacerItem2, 0, 3, 1, 1)
72-
self.gridLayout_2.addWidget(self.frame, 0, 0, 1, 1)
81+
self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
82+
self.gridLayout_2.addWidget(self.frame_3, 0, 1, 1, 1)
83+
self.gridLayout_5.addWidget(self.frame_4, 0, 1, 1, 1)
84+
spacerItem1 = QtWidgets.QSpacerItem(80, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
85+
self.gridLayout_5.addItem(spacerItem1, 0, 2, 1, 1)
86+
spacerItem2 = QtWidgets.QSpacerItem(80, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
87+
self.gridLayout_5.addItem(spacerItem2, 0, 0, 1, 1)
88+
spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
89+
self.gridLayout_5.addItem(spacerItem3, 1, 1, 1, 1)
90+
self.gridLayout_4.addWidget(self.frame, 0, 0, 1, 1)
7391

7492
self.retranslateUi(Form)
7593
QtCore.QMetaObject.connectSlotsByName(Form)
7694

7795
def retranslateUi(self, Form):
7896
_translate = QtCore.QCoreApplication.translate
7997
Form.setWindowTitle(_translate("Form", "Form"))
80-
self.label_2.setText(_translate("Form", "Bangladesh is a country located in southern Asia. The country is bordered by India to the west, north, and east, and by Burma to the southeast. Bangladesh has a population of over 162 million people and an area of 147,570 square kilometers. The capital and largest city is Dhaka.Bangladesh is a country located in South Asia. It is bordered by India to the east, west, and north, and by the Bay of Bengal to the south. It has a population of around 166 million people, making it the 8th most populous country in the world. Bangladesh is a developing country and has an economy that is reliant on agriculture, with rice being its major export. The capital city is Dhaka, where many of the country’s airports, universities, and government offices are located. Bangladesh is home to a variety of cultures, religions, and languages, with the official language being Bengali. Bangladesh is a member of the Commonwealth of Nations and the United Nations. The country has experienced significant progress in recent years, with a decrease in poverty levels and an increase in primary school enrollment. The Bangladeshi economy is growing at an estimated 6% per year."))

0 commit comments

Comments
 (0)